@optimiser/common 1.0.424 → 1.0.426
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/taskutils.js +2 -2
- package/dist/lib/utility.js +18 -16
- package/package.json +1 -1
package/dist/lib/taskutils.js
CHANGED
|
@@ -310,14 +310,14 @@ function CreateNotificationContent(info, req, db, event) {
|
|
|
310
310
|
});
|
|
311
311
|
Payload['pushObj'] = {
|
|
312
312
|
title: "New ".concat(listType, " assigned: ").concat(list.ListName),
|
|
313
|
-
message: "".concat(creator.FirstName, " ").concat(creator.LastName, " has added you to this ").concat(listType),
|
|
313
|
+
message: "".concat(creator.FirstName, " ").concat(creator.LastName, " has added you in Tasks to this ").concat(listType),
|
|
314
314
|
attr: "TaskList:".concat(list._id, ":").concat(list.IsMasterList, ":").concat(list.IsPublic, ":").concat(list.OwnerID)
|
|
315
315
|
};
|
|
316
316
|
Payload['desktopObj'] = {
|
|
317
317
|
EventObjectName: "TaskList",
|
|
318
318
|
EventID: list._id,
|
|
319
319
|
UserIds: Payload['users'],
|
|
320
|
-
Message: "".concat(creator.FirstName, " ").concat(creator.LastName, " has added you to this ").concat(listType, ": ").concat(list.ListName),
|
|
320
|
+
Message: "".concat(creator.FirstName, " ").concat(creator.LastName, " has added you in Tasks to this ").concat(listType, ": ").concat(list.ListName),
|
|
321
321
|
CreatedBy: creator._id
|
|
322
322
|
};
|
|
323
323
|
TriggerNotifications(list.TaskNotification, Payload, req, db, event);
|
package/dist/lib/utility.js
CHANGED
|
@@ -4846,22 +4846,24 @@ function ValidateUserInput(options) {
|
|
|
4846
4846
|
break;
|
|
4847
4847
|
}
|
|
4848
4848
|
}
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
break
|
|
4849
|
+
if (pageData.Groups && pageData.Groups.length) {
|
|
4850
|
+
for (_d = 0, _e = pageData.Groups; _d < _e.length; _d++) {
|
|
4851
|
+
grp = _e[_d];
|
|
4852
|
+
if (grp.IsConditionalGroup) {
|
|
4853
|
+
_loop_19 = function (fld) {
|
|
4854
|
+
fld = JSON.parse(JSON.stringify(fld));
|
|
4855
|
+
var schemafld = schemaFields.find(function (x) { return x.Name == fld.Name; });
|
|
4856
|
+
fld.Schema = schemafld;
|
|
4857
|
+
msg = CheckConditionalGroup(grp, fld, fieldsJsonData);
|
|
4858
|
+
if (msg != "")
|
|
4859
|
+
return "break";
|
|
4860
|
+
};
|
|
4861
|
+
for (_f = 0, _g = grp.Fields; _f < _g.length; _f++) {
|
|
4862
|
+
fld = _g[_f];
|
|
4863
|
+
state_2 = _loop_19(fld);
|
|
4864
|
+
if (state_2 === "break")
|
|
4865
|
+
break;
|
|
4866
|
+
}
|
|
4865
4867
|
}
|
|
4866
4868
|
}
|
|
4867
4869
|
}
|