Update related lists when related value changes.
This commit is contained in:
@@ -202,7 +202,13 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private void RefreshFields(Detail tmp)
|
||||
{
|
||||
_ContentID = tmp.ContentID;
|
||||
if (_ContentID != tmp.ContentID)
|
||||
{
|
||||
MyContent.RefreshContentDetails(); // Update List for old value
|
||||
_ContentID = tmp.ContentID; // Update the value
|
||||
_MyContent = null; // Reset list so that the next line gets a new list
|
||||
MyContent.RefreshContentDetails(); // Update List for new value
|
||||
}
|
||||
_ItemType = tmp.ItemType;
|
||||
_Text = tmp.Text;
|
||||
_Config = tmp.Config;
|
||||
|
Reference in New Issue
Block a user