From 209c084f51f90b6d9d403a4486cdb41af14624b3 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 1 Oct 2015 18:30:51 +0200 Subject: [PATCH] Form: Only add the ViewHelper decorator for hidden form fields refs #5543 --- library/Icinga/Web/Form.php | 4 ++++ public/css/icinga/forms.less | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 0f34553e9..ca087bfcf 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -916,12 +916,16 @@ class Form extends Zend_Form || ($type === 'button' && isset($options['type']) && $options['type'] === 'submit')) ) { array_splice($options['decorators'], 1, 0, array(array('Spinner', array('separator' => '')))); + } elseif ($type === 'hidden') { + $options['decorators'] = array('ViewHelper'); } } } else { $options = array('decorators' => static::$defaultElementDecorators); if ($type === 'submit') { array_splice($options['decorators'], 1, 0, array(array('Spinner', array('separator' => '')))); + } elseif ($type === 'hidden') { + $options['decorators'] = array('ViewHelper'); } } diff --git a/public/css/icinga/forms.less b/public/css/icinga/forms.less index 772d73fd1..5e4c42f46 100644 --- a/public/css/icinga/forms.less +++ b/public/css/icinga/forms.less @@ -12,10 +12,6 @@ input { } } -.control-group ~ input[type="hidden"] { - display: none; -} - input.search { padding-left: 20px; background: @gray-lightest url('../img/icons/search.png') no-repeat 2px;