@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.
@@ -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);
@@ -4846,22 +4846,24 @@ function ValidateUserInput(options) {
4846
4846
  break;
4847
4847
  }
4848
4848
  }
4849
- for (_d = 0, _e = pageData.Groups; _d < _e.length; _d++) {
4850
- grp = _e[_d];
4851
- if (grp.IsConditionalGroup) {
4852
- _loop_19 = function (fld) {
4853
- fld = JSON.parse(JSON.stringify(fld));
4854
- var schemafld = schemaFields.find(function (x) { return x.Name == fld.Name; });
4855
- fld.Schema = schemafld;
4856
- msg = CheckConditionalGroup(grp, fld, fieldsJsonData);
4857
- if (msg != "")
4858
- return "break";
4859
- };
4860
- for (_f = 0, _g = grp.Fields; _f < _g.length; _f++) {
4861
- fld = _g[_f];
4862
- state_2 = _loop_19(fld);
4863
- if (state_2 === "break")
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.424",
3
+ "version": "1.0.426",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {