Revision 914
Added by Matthias almost 16 years ago
view.php | ||
---|---|---|
189 | 189 |
$options = explode(',', $value); |
190 | 190 |
array_walk($options, 'make_option', (isset($_SESSION['field'.$field_id])?$_SESSION['field'.$field_id]:array())); |
191 | 191 |
$field['extra'] = explode(',',$field['extra']); |
192 |
$values[] = '<select name="field'.$field_id.'" id="field'.$field_id.'" size="'.$field['extra'][0].'" '.$field['extra'][1].' class="select">'.implode($options).'</select>'; |
|
192 |
$values[] = '<select name="field'.$field_id.'[]" id="field'.$field_id.'" size="'.$field['extra'][0].'" '.$field['extra'][1].' class="select">'.implode($options).'</select>';
|
|
193 | 193 |
} elseif($field['type'] == 'heading') { |
194 | 194 |
$vars[] = '{FIELD}'; |
195 | 195 |
$values[] = '<input type="hidden" name="field'.$field_id.'" id="field'.$field_id.'" value="===['.$field['title'].']===" />'; |
Also available in: Unified diff
fixed form-module select (multiple) doesn't work (ticket #681 Thanks to thorn)