@eqproject/eqp-dynamic-module 2.6.26 → 2.6.27

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.
@@ -5144,7 +5144,7 @@ class AddFormRecordComponent {
5144
5144
  // Controlla e spara il trigger se necessario
5145
5145
  checkTriggers(record) {
5146
5146
  var fireTrigger = true;
5147
- GlobalService.debugLog("checkTriggers - inside checkTriggers()");
5147
+ GlobalService.debugLog("checkTriggers - inside checkTriggers()", this.form.Triggers);
5148
5148
  if (this.form.Triggers != null) {
5149
5149
  GlobalService.debugLog("checkTriggers - have triggers in form");
5150
5150
  this.form.Triggers.forEach((trigger) => {
@@ -8097,6 +8097,7 @@ class EqpDynamicModuleComponent {
8097
8097
  GlobalService.debugLog("query params", dynamicModuleParams);
8098
8098
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
8099
8099
  this.form = res;
8100
+ this.form.Triggers = JSON.parse(this.form.ObjectTriggers);
8100
8101
  GlobalService.debugLog("RES", res);
8101
8102
  // preparo i dati del record
8102
8103
  var dynamicRecordParams = [
@@ -8133,6 +8134,7 @@ class EqpDynamicModuleComponent {
8133
8134
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
8134
8135
  // console.log("success RunEndPointCall",res,this.defaultViewMode);
8135
8136
  this.form = res;
8137
+ this.form.Triggers = JSON.parse(this.form.ObjectTriggers);
8136
8138
  this.selectedRecord = null;
8137
8139
  if (this.answerToDuplicateId != null) {
8138
8140
  this.selectedRecord = this.answerToDuplicateId;