From e2367c10e65a0f17244daf23071846e3e13a3595 Mon Sep 17 00:00:00 2001 From: ADmad Date: Thu, 3 May 2018 17:49:56 +0530 Subject: [PATCH] Don't set label for filter fields by default. FormHelper already sets label based on field name in similar manner. Setting label here actually prevents the translation of labels which FormHelper does. --- src/Listener/ViewSearchListener.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Listener/ViewSearchListener.php b/src/Listener/ViewSearchListener.php index f1444ce7..b876ef2a 100644 --- a/src/Listener/ViewSearchListener.php +++ b/src/Listener/ViewSearchListener.php @@ -106,7 +106,6 @@ protected function _deriveFields() $field = $filter->name(); $input = [ - 'label' => Inflector::humanize(preg_replace('/_id$/', '', $field)), 'required' => false, 'type' => 'text' ];