Permalink
Browse files

Merge pull request #150 from akrabat/hotfix-hidden-field

UserId should be a hidden field
  • Loading branch information...
2 parents 334c5aa + a9e310e commit f190c9b4f45c9b631231de0f7f679d259c602c0c @EvanDotPro EvanDotPro committed Sep 26, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/ZfcUser/Form/Base.php
@@ -76,10 +76,10 @@ public function __construct()
}
$submitElement = new Element\Button('submit');
- $submitElement
- ->setLabel('Submit')
- ->setAttributes(array(
- 'type' => 'submit',
+ $submitElement
+ ->setLabel('Submit')
+ ->setAttributes(array(
+ 'type' => 'submit',
));
$this->add($submitElement, array(
@@ -88,6 +88,7 @@ public function __construct()
$this->add(array(
'name' => 'userId',
+ 'type' => 'Zend\Form\Element\Hidden',
'attributes' => array(
'type' => 'hidden'
),

0 comments on commit f190c9b

Please sign in to comment.