Skip to content

Commit

Permalink
SearchKit - Use angular helper crmStatus for in-place-edit
Browse files Browse the repository at this point in the history
Followup to civicrm#27105 this uses native angular service instead of jQuery-based function
  • Loading branch information
colemanw committed Sep 6, 2023
1 parent ef7dcbf commit e86d250
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
cancel: '&'
},
templateUrl: '~/crmSearchDisplay/crmSearchDisplayEditable.html',
controller: function($scope, $element, crmApi4) {
controller: function($scope, $element, crmApi4, crmStatus) {
var ctrl = this,
initialValue,
col;
Expand Down Expand Up @@ -53,7 +53,7 @@
const value = formatDataType(ctrl.value);
if (value !== initialValue) {
col.edit.record[col.edit.value_key] = value;
CRM.status({}, crmApi4(col.edit.entity, col.edit.action, {values: col.edit.record}));
crmStatus({}, crmApi4(col.edit.entity, col.edit.action, {values: col.edit.record}));
ctrl.row.data[col.edit.value_path] = value;
col.val = formatDisplayValue(value);
}
Expand Down

0 comments on commit e86d250

Please sign in to comment.