DirectorObjectForm: use helper method for button

This commit is contained in:
Thomas Gelf 2015-07-30 12:52:38 +02:00
parent 9d4bd323a8
commit 49042393bf

View File

@ -307,8 +307,6 @@ $inherited = null; // Just testing
return $this;
}
if ($submit = $this->getElement('submit')) {
$this->removeElement('submit');
}
if ($object->supportsGroups()) {
@ -339,9 +337,7 @@ $inherited = null; // Just testing
*/
}
if ($submit) {
$this->addElement($submit);
}
$this->moveSubmitToBottom();
if (! $this->hasBeenSubmitted()) {
$this->beforeValidation($this->object->getProperties());