diff --git a/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js b/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js index ccce0f310ec..acda7fab8ed 100644 --- a/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js +++ b/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js @@ -46,6 +46,7 @@ }; this.doTask = function(task, ids, isLink) { + debugger; var data = { ids: ids, entity: mngr.getEntityName(), @@ -91,7 +92,7 @@ this.refreshAfterTask = function(result, ids) { displayCtrl.selectedRows = []; displayCtrl.allRowsSelected = false; - if (result.action === 'inlineEdit' && ids && ids.length === 1) { + if (result && result.action === 'inlineEdit' && ids && ids.length === 1) { displayCtrl.refreshAfterEditing(result, ids[0]); } else { diff --git a/tests/phpunit/api/v3/EntityTagACLTest.php b/tests/phpunit/api/v3/EntityTagACLTest.php index 66623d2f534..f46723e205b 100644 --- a/tests/phpunit/api/v3/EntityTagACLTest.php +++ b/tests/phpunit/api/v3/EntityTagACLTest.php @@ -76,7 +76,7 @@ public function setUp(): void { * @return array */ public function getTagOptions() { - $options = $this->callAPISuccess('Tag', 'getoptions', ['field' => 'used_for']); + $options = $this->callAPISuccess('EntityTag', 'getoptions', ['field' => 'entity_table']); return $options['values']; }