C2015-028 Add Editorial Mode to PROMS Step Editor
This commit is contained in:
@@ -606,12 +606,20 @@ namespace VEPROMS.CSLA.Library
|
||||
_ItemInfoExtension.Refresh(this);
|
||||
OnChange();// raise an event
|
||||
}
|
||||
public static ItemInfo Get(int itemID)
|
||||
public static ItemInfo Get(int itemID, bool forcerefresh = false)
|
||||
{
|
||||
//if (!CanGetObject())
|
||||
// throw new System.Security.SecurityException("User not authorized to view a Item");
|
||||
|
||||
try
|
||||
{
|
||||
// C2015-028 Add Editorial Mode to PROMS Step Editor
|
||||
// fixes caching issue
|
||||
// item.myconfig was cached not containing the bypass changebar info
|
||||
// so this forces a refresh of the cache
|
||||
if (forcerefresh)
|
||||
{
|
||||
_CacheByPrimaryKey.Remove(itemID.ToString());
|
||||
}
|
||||
|
||||
ItemInfo tmp = GetCachedByPrimaryKey(itemID);
|
||||
if (tmp == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user