Skip to content

Commit

Permalink
Don't set label for filter fields by default.
Browse files Browse the repository at this point in the history
FormHelper already sets label based on field name in similar manner. Setting label here
actually prevents the translation of labels which FormHelper does.
  • Loading branch information
ADmad authored May 3, 2018
1 parent 1df3e98 commit e2367c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Listener/ViewSearchListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ protected function _deriveFields()

$field = $filter->name();
$input = [
'label' => Inflector::humanize(preg_replace('/_id$/', '', $field)),
'required' => false,
'type' => 'text'
];
Expand Down

0 comments on commit e2367c1

Please sign in to comment.