[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch: PropertyModifierReplace: Allow replacement to be empty

git at icinga.org git at icinga.org
Tue May 24 14:19:23 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch
Commit: 0a3ab532aa637493c31a85250bd2528f508d3d6c
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=0a3ab532aa637493c31a85250bd2528f508d3d6c

Author: Markus Frosch <lazyfrosch at icinga.org>
Date:   Tue May 24 14:19:17 2016 +0200

PropertyModifierReplace: Allow replacement to be empty

---

 library/Director/PropertyModifier/PropertyModifierReplace.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/PropertyModifier/PropertyModifierReplace.php b/library/Director/PropertyModifier/PropertyModifierReplace.php
index 156ebde..519eea1 100644
--- a/library/Director/PropertyModifier/PropertyModifierReplace.php
+++ b/library/Director/PropertyModifier/PropertyModifierReplace.php
@@ -18,7 +18,7 @@ class PropertyModifierReplace extends PropertyModifierHook
         $form->addElement('text', 'replacement', array(
             'label'       => 'Replacement',
             'description' => $form->translate('Your replacement string'),
-            'required'    => true,
+            'required'    => false,
         ));
     }
 



More information about the icinga-checkins mailing list