Skip to content

Commit

Permalink
Test fix - limit taggable entities to those supported by the entityTa…
Browse files Browse the repository at this point in the history
…g table
  • Loading branch information
colemanw committed Jan 28, 2025
1 parent 4f9ab8d commit d74439b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
};

this.doTask = function(task, ids, isLink) {
debugger;
var data = {
ids: ids,
entity: mngr.getEntityName(),
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/api/v3/EntityTagACLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

Expand Down

0 comments on commit d74439b

Please sign in to comment.