Skip to content

Commit

Permalink
message_admin - Fetch 'workflow_name' when displaying list view
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Jul 11, 2023
1 parent 719c57a commit e2b8310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/message_admin/ang/crmMsgadm/Workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
prefetch: function(crmApi4, crmStatus) {
var q = crmApi4({
records: ['MessageTemplate', 'get', {
select: ["id", "msg_title", "is_default", "is_active"],
select: ["id", "msg_title", "is_default", "is_active", "workflow_name"],
where: [["workflow_name", "IS NOT EMPTY"], ["is_reserved", "=", "0"]]
}],
translations: ['MessageTemplate', 'get', {
select: ["id", "msg_title", "is_default", "is_active", "tx.language:label", "tx.language"],
select: ["id", "msg_title", "is_default", "is_active", "workflow_name", "tx.language:label", "tx.language"],
join: [["Translation AS tx", "INNER", null, ["tx.entity_table", "=", "'civicrm_msg_template'"], ["tx.entity_id", "=", "id"]]],
where: [["workflow_name", "IS NOT EMPTY"], ["is_reserved", "=", "0"]],
groupBy: ["id", "tx.language"],
Expand Down

0 comments on commit e2b8310

Please sign in to comment.