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

View File

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