From 33d41426643595e8f1beb1ea5ab94e0c0c33727d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 14 May 2014 11:02:11 +0200 Subject: [PATCH] Make it possible to recreate a form --- library/Icinga/Web/Form.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 3822062e0..5d5c3da85 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -610,4 +610,13 @@ class Form extends Zend_Form { $this->buttonsHidden = true; } + + /** + * q&d solution to be able to recreate a form + */ + public function reset() + { + $this->created = false; + $this->clearElements(); + } }