From: <gem...@li...> - 2012-03-01 15:35:11
|
Revision: 530 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=530&view=rev Author: mennodekker Date: 2012-03-01 15:35:00 +0000 (Thu, 01 Mar 2012) Log Message: ----------- Fixed validation error for respondents in tabform view -> hidden fields need to be in the same tab for validation to work (see rev[363]) Modified Paths: -------------- trunk/library/classes/Gems/Default/RespondentAction.php Modified: trunk/library/classes/Gems/Default/RespondentAction.php =================================================================== --- trunk/library/classes/Gems/Default/RespondentAction.php 2012-03-01 15:21:51 UTC (rev 529) +++ trunk/library/classes/Gems/Default/RespondentAction.php 2012-03-01 15:35:00 UTC (rev 530) @@ -124,11 +124,13 @@ $ucfirst = new Zend_Filter_Callback('ucfirst'); + $bridge->addTab( 'caption1')->h4($this->_('Identification')); + //Add the hidden fields after the tab, so validation will work. They need to be in the + //same tab where they are needed $bridge->addHidden( 'grs_id_user'); $bridge->addHidden( 'gr2o_id_organization'); $bridge->addHidden( $model->getKeyCopyName('gr2o_patient_nr')); - $bridge->addTab( 'caption1')->h4($this->_('Identification')); $bridge->addText( 'grs_ssn', 'label', $this->_('SSN'), 'size', 10, 'maxlength', 12) ->addValidator( new MUtil_Validate_Dutch_Burgerservicenummer()) ->addValidator( $model->createUniqueValidator('grs_ssn')) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |