Update related lists when related value changes.
This commit is contained in:
@@ -254,7 +254,13 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private void RefreshFields(Permission tmp)
|
||||
{
|
||||
_RID = tmp.RID;
|
||||
if (_RID != tmp.RID)
|
||||
{
|
||||
MyRole.RefreshRolePermissions(); // Update List for old value
|
||||
_RID = tmp.RID; // Update the value
|
||||
_MyRole = null; // Reset list so that the next line gets a new list
|
||||
MyRole.RefreshRolePermissions(); // Update List for new value
|
||||
}
|
||||
_PermLevel = tmp.PermLevel;
|
||||
_VersionType = tmp.VersionType;
|
||||
_PermValue = tmp.PermValue;
|
||||
|
Reference in New Issue
Block a user