This commit is contained in:
@@ -140,12 +140,13 @@ namespace AyaNova.DataList
|
|||||||
using (var ct = AyaNova.Util.ServiceProviderProvider.DBContext)
|
using (var ct = AyaNova.Util.ServiceProviderProvider.DBContext)
|
||||||
{
|
{
|
||||||
var fc = ct.FormCustom.AsNoTracking().SingleOrDefault(x => x.FormKey == ayatypename);
|
var fc = ct.FormCustom.AsNoTracking().SingleOrDefault(x => x.FormKey == ayatypename);
|
||||||
#if (DEBUG)
|
//This is normal and expected in an empty db, removing this block
|
||||||
if (fc == null)
|
// #if (DEBUG)
|
||||||
{
|
// if (fc == null)
|
||||||
throw new System.ArgumentNullException($"AyaDataList:GetCustomFieldDefinitionsForList, Custom field object type {ayatypename} has no FormCustom defined");
|
// {
|
||||||
}
|
// throw new System.ArgumentNullException($"AyaDataList:GetCustomFieldDefinitionsForList, Custom field object type {ayatypename} has no FormCustom defined");
|
||||||
#endif
|
// }
|
||||||
|
// #endif
|
||||||
//production handling of missing formcustom
|
//production handling of missing formcustom
|
||||||
if (fc == null)
|
if (fc == null)
|
||||||
continue;
|
continue;
|
||||||
@@ -211,7 +212,7 @@ namespace AyaNova.DataList
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user