Make it possible to recreate a form
This commit is contained in:
parent
1637a19c23
commit
33d4142664
|
@ -610,4 +610,13 @@ class Form extends Zend_Form
|
||||||
{
|
{
|
||||||
$this->buttonsHidden = true;
|
$this->buttonsHidden = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* q&d solution to be able to recreate a form
|
||||||
|
*/
|
||||||
|
public function reset()
|
||||||
|
{
|
||||||
|
$this->created = false;
|
||||||
|
$this->clearElements();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue