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:

trunk/CHANGELOG
10 10
# = Bugfix
11 11
! = Update/Change
12 12

  
13
------------------------------------- 2.7.1 -------------------------------------
14
25-Apr-2008 Matthias Gallas
15
#	fixed validiation bug in option fields of form modul
13 16
------------------------------------- 2.7.0 -------------------------------------
14 17
21-Apr-2008 Christian Sommer
15 18
!	set version to 2.7
trunk/wb/modules/form/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