Project

General

Profile

« Previous | Next » 

Revision 839

Added by Matthias over 16 years ago

fixed validiation bug in option fields of form modul

View differences:

view.php
188 188
			$options = explode(',', $value);
189 189
			array_walk($options, 'make_option', (isset($_SESSION['field'.$field_id])?$_SESSION['field'.$field_id]:array()));
190 190
			$field['extra'] = explode(',',$field['extra']);
191
			$values[] = '<select name="field'.$field_id.'[]" id="field'.$field_id.'" size="'.$field['extra'][0].'" '.$field['extra'][1].'="'.$field['extra'][1].'" class="select">'.implode($options).'</select>';
191
			$values[] = '<select name="field'.$field_id.'" id="field'.$field_id.'" size="'.$field['extra'][0].'" '.$field['extra'][1].' class="select">'.implode($options).'</select>';		
192 192
		} elseif($field['type'] == 'heading') {
193 193
			$vars[] = '{FIELD}';
194 194
			$values[] = '<input type="hidden" name="field'.$field_id.'" id="field'.$field_id.'" value="===['.$field['title'].']===" />';

Also available in: Unified diff