From e86d2500b3fd7ec8e20f3f562260cd044b9b7c65 Mon Sep 17 00:00:00 2001 From: colemanw Date: Wed, 6 Sep 2023 18:02:29 -0400 Subject: [PATCH] SearchKit - Use angular helper crmStatus for in-place-edit Followup to #27105 this uses native angular service instead of jQuery-based function --- .../crmSearchDisplay/crmSearchDisplayEditable.component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js b/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js index d54bd66c12..46eed4615d 100644 --- a/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js +++ b/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js @@ -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; @@ -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); } -- 2.25.1