Skip to content

Commit

Permalink
Merge pull request #376 from FriendsOfCake/josegonzalez-patch-1
Browse files Browse the repository at this point in the history
Fix check for missing behavior
  • Loading branch information
ADmad committed Dec 26, 2015
2 parents a8e3163 + bfa43d9 commit a58a672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/SearchListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function injectSearch(Event $event)
}

$table = $this->_table();
if (!method_exists($table, 'filterParams')) {
if (!$table->behaviors()->hasMethod('filterParams')) {
throw new RuntimeException(sprintf(
'Missing Search.Search behavior on %s',
get_class($table)
Expand Down

0 comments on commit a58a672

Please sign in to comment.