B2018-023: With two sessions open, cannot export a procedure set if other session is on VEPROMS tree node

This commit is contained in:
Kathy Ruffing 2018-06-04 15:51:04 +00:00
parent 7ab18b30d1
commit 3977cebe1d

View File

@ -535,7 +535,9 @@ namespace VEPROMS
if (fi != null) if (fi != null)
{ {
string msg = string.Empty; string msg = string.Empty;
bool ok = MySessionInfo.CanCheckOutItem(fi.FolderID, CheckOutType.Session, ref msg); // B2018-023: If exporting a procedure set, and someone else is in the database (but not this folder)
// don't stop the export (CheckOutType.Session was changed to CheckOutType.Folder).
bool ok = MySessionInfo.CanCheckOutItem(fi.FolderID, CheckOutType.Folder, ref msg);
//bool ok = MySessionInfo.CanCheckOutItem(fi.FolderID, (args.Index == 0)? CheckOutType.Folder : CheckOutType.Session, ref msg); //bool ok = MySessionInfo.CanCheckOutItem(fi.FolderID, (args.Index == 0)? CheckOutType.Folder : CheckOutType.Session, ref msg);
if (!ok) if (!ok)
{ {