From d037a5037f9fe25791a4a6d2469f6cc5cda0b99d Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 9 Sep 2021 21:17:04 -0700 Subject: [PATCH] msgtplui - Rename WorkflowMessageExample => ExampleData --- ext/msgtplui/ang/msgtplui/Edit.js | 2 +- ext/msgtplui/ang/msgtplui/Preview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/msgtplui/ang/msgtplui/Edit.js b/ext/msgtplui/ang/msgtplui/Edit.js index e6e785fe24..8c05b60193 100644 --- a/ext/msgtplui/ang/msgtplui/Edit.js +++ b/ext/msgtplui/ang/msgtplui/Edit.js @@ -266,7 +266,7 @@ }; crmApi4({ - examples: ['WorkflowMessageExample', 'get', { + examples: ['ExampleData', 'get', { // FIXME: workflow name where: [["tags", "CONTAINS", "preview"], ["workflow", "=", $ctrl.records.main.workflow_name]], select: ['name', 'title', 'workflow', 'data'] diff --git a/ext/msgtplui/ang/msgtplui/Preview.js b/ext/msgtplui/ang/msgtplui/Preview.js index 5e89adc0fa..7cac7653b5 100644 --- a/ext/msgtplui/ang/msgtplui/Preview.js +++ b/ext/msgtplui/ang/msgtplui/Preview.js @@ -39,7 +39,7 @@ function requestStoredExample() { // For a dev working on example, it's easier if the example is always loaded fresh. - return crmApi4('WorkflowMessageExample', 'get', { + return crmApi4('ExampleData', 'get', { where: [["name", "=", model.examples[$ctrl.exampleId].name]], select: ['workflow', 'data'], chain: { -- 2.25.1