@optimiser/common 1.0.404 → 1.0.405
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/utility.js +6 -4
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -821,8 +821,9 @@ function DeleteFieldInOtherCollection(objectName, objectIDs, db, params, comMast
|
|
|
821
821
|
_c);
|
|
822
822
|
}
|
|
823
823
|
else {
|
|
824
|
-
/*On deletion of
|
|
825
|
-
if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
824
|
+
/*On deletion set Lookupdata & Value to null instead of marking it as IsActive False in LookupData - QPC-9876*/
|
|
825
|
+
//if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
826
|
+
if (obj.Fields.ResetToNullOnDelete == true) {
|
|
826
827
|
query.set = (_d = {},
|
|
827
828
|
_d[obj.Fields.Name] = null,
|
|
828
829
|
_d[alias] = null,
|
|
@@ -943,8 +944,9 @@ function DeleteFieldInOtherCollection(objectName, objectIDs, db, params, comMast
|
|
|
943
944
|
_c);
|
|
944
945
|
}
|
|
945
946
|
else {
|
|
946
|
-
/*On deletion of
|
|
947
|
-
if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
947
|
+
/*On deletion set Lookupdata & Value to null instead of marking it as IsActive False in LookupData - QPC-9876*/
|
|
948
|
+
//if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
949
|
+
if (obj.Fields.ResetToNullOnDelete == true) {
|
|
948
950
|
query.set = (_d = {},
|
|
949
951
|
_d[obj.Fields.Name] = null,
|
|
950
952
|
_d[alias] = null,
|