Changeset 1065
- Timestamp:
- 08/26/08 22:32:11 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix/forms/jFormsCompiler_jf_1_1.class.php
r1063 r1065 125 125 $source[]='$topctrl = $ctrl;'; 126 126 $ctrlcount = $this->readChildControls($source, 'group', $control, array('label')); 127 if ($ctrlcount == 0) {127 /*if ($ctrlcount == 0) { 128 128 throw new jException('jelix~formserr.no.child.control',array('group',$this->sourceFile)); 129 } 129 }*/ 130 130 $source[]='$ctrl = $topctrl;'; 131 131 return false; … … 146 146 } 147 147 148 $itemCount = 0;148 //$itemCount = 0; 149 149 foreach($control->item as $item){ 150 150 if(!isset($item['value'])){ … … 177 177 178 178 $ctrlcount = $this->readChildControls($source, 'choice', $item, array('label'), str_replace("'","\\'",$value)); 179 $itemCount ++;180 } 181 182 if ($itemCount == 0) {179 //$itemCount ++; 180 } 181 182 /*if ($itemCount == 0) { 183 183 throw new jException('jelix~formserr.no.child.control',array('choice',$this->sourceFile)); 184 } 184 }*/ 185 185 186 186 $source[]='$topctrl->defaultValue=\''.str_replace('\'','\\\'',$selectedvalue).'\';';
