Call `Form::getSubmitLabal()' in `Form::addSubmitButton()'

This allows us to dynamically define submit labels in form subclasses.
This commit is contained in:
Eric Lippmann 2014-09-19 13:00:15 +02:00
parent 5ba96c32f9
commit 3c9859a0f1
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ class Form extends Zend_Form
'btn_submit',
array(
'ignore' => true,
'label' => $this->submitLabel,
'label' => $this->getSubmitLabel(),
'decorators' => array(
'ViewHelper',
array('HtmlTag', array('tag' => 'div'))