diff --git a/server/AyaNova/biz/WorkOrderBiz.cs b/server/AyaNova/biz/WorkOrderBiz.cs index 85cc5062..1c522cff 100644 --- a/server/AyaNova/biz/WorkOrderBiz.cs +++ b/server/AyaNova/biz/WorkOrderBiz.cs @@ -861,7 +861,8 @@ namespace AyaNova.Biz } } - ret.Items.Add(woitem); + if (woitem != null) + ret.Items.Add(woitem); await WorkOrderPopulateVizFields(ret, false); return ret; @@ -892,8 +893,8 @@ namespace AyaNova.Biz //return in db natural order and need to be put back into the same order as the ID List //Here in the workorder however, this code is fetching individually one at a time so they are always going to be in the correct order so this re-ordering is unnecessary //I'm keeping this here for future reference when I ineveitably wonder what the hell is happening here :) - - + + //order the results back into original //IEnumerable orderedList = null; diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index 2acb68df..c0dc6ab3 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -31,7 +31,7 @@ namespace AyaNova.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!! - ///////////////////////////////////////////////////////////////// C957:I137:CC415:FC118:V6:R2 + ///////////////////////////////////////////////////////////////// (C961:I137:CC415:FC118:V6:R2) /*