[icinga-checkins] icinga.org: icingaweb2/feature/style-forms: Prepare Autosubmit decorator to be used as default element decorator

git at icinga.org git at icinga.org
Tue Nov 22 14:16:34 CET 2016


Module: icingaweb2
Branch: feature/style-forms
Commit: 7db77d4d2bb7440e33b470b9df9f0c7d1934d683
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=7db77d4d2bb7440e33b470b9df9f0c7d1934d683

Author: Eric Lippmann <eric.lippmann at icinga.com>
Date:   Tue Nov 22 14:12:24 2016 +0100

Prepare Autosubmit decorator to be used as default element decorator

---

 library/Icinga/Web/Form/Decorator/Autosubmit.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/Form/Decorator/Autosubmit.php b/library/Icinga/Web/Form/Decorator/Autosubmit.php
index 81a8e57..5f4a6ab 100644
--- a/library/Icinga/Web/Form/Decorator/Autosubmit.php
+++ b/library/Icinga/Web/Form/Decorator/Autosubmit.php
@@ -93,7 +93,7 @@ class Autosubmit extends Zend_Form_Decorator_Abstract
      */
     public function render($content = '')
     {
-        if ($content) {
+        if ($content && $this->getElement()->getAttrib('autosubmit')) {
             $isForm = $this->getElement() instanceof Form;
             $warning = $isForm
                 ? t('Upon any of this form\'s fields were changed, this page is being updated automatically.')



More information about the icinga-checkins mailing list