diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index c87724507..833ad4a33 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -370,13 +370,14 @@ class Form extends Zend_Form */ public function addSubmitButton() { - if ($this->submitLabel) { + $submitLabel = $this->getSubmitLabel(); + if ($submitLabel) { $this->addElement( 'submit', 'btn_submit', array( 'ignore' => true, - 'label' => $this->getSubmitLabel(), + 'label' => $submitLabel, 'decorators' => array( 'ViewHelper', array('HtmlTag', array('tag' => 'div'))