Skip to content

Commit

Permalink
Merge pull request #21 from edgars1337/fix-filtering-infinite-load
Browse files Browse the repository at this point in the history
fixed error when trying to use filter fields for menu items
  • Loading branch information
carinadues authored Jul 13, 2021
2 parents 09e6e5e + 09a2a61 commit 5b83e9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Model/ResourceModel/Item/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public function joinParentNames()
['parent_title' => 'title']
)->order('main_table.item_id ASC');

$this->addFilterToMap('is_active', 'main_table.is_active');
$this->addFilterToMap('item_class', 'main_table.item_class');
$this->addFilterToMap('position', 'main_table.position');

return $this;
}

Expand Down

0 comments on commit 5b83e9a

Please sign in to comment.