Refresh Entry when ContentInfo refreshed (Error 159)

This commit is contained in:
Rich 2010-11-17 17:30:48 +00:00
parent c5f5e692c8
commit c57078a7cb

View File

@ -504,7 +504,12 @@ namespace VEPROMS.CSLA.Library
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(key))
foreach (ContentInfo tmpInfo in _CacheByPrimaryKey[key])
{
tmpInfo.RefreshFields(tmp);
// TODO: This needs to be handled in Generatedd Code.
if (tmp.MyEntry != null && tmpInfo.MyEntry != null && tmp.MyEntry.MyDocument.DocID != tmpInfo.MyEntry.MyDocument.DocID)
EntryInfo.Refresh(tmp.MyEntry);
}
}
protected virtual void RefreshFields(Content tmp)
{