Moves user to Core models and removes backwards compat hacks and casting

This commit is contained in:
Shannon
2020-05-20 10:22:48 +10:00
parent 4b5777a747
commit 96e006e8b9
6 changed files with 46 additions and 73 deletions

View File

@@ -424,7 +424,7 @@ ORDER BY colName";
// as new, as we do not want to create a new user - instead, persist
// it as updated
// see also: UserFactory.BuildEntity
if (((User) entity).AdditionalData.ContainsKey("IS_V7_ZERO"))
if (entity.FromUserCache<string>("IS_V7_ZERO") != null)
{
PersistUpdatedItem(entity);
return;