form: Fix dynamic submit label retrieval
This commit is contained in:
parent
c13823d406
commit
5b5f553d0d
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue