[svn r18467] Adding the "field_filter" column see FS#3462

skala
Julio Montoya 16 years ago
parent ebc9cbe19b
commit 4555455782
  1. 8
      main/survey/fillsurvey.php

@ -430,7 +430,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra
break; break;
case USER_FIELD_TYPE_RADIO : case USER_FIELD_TYPE_RADIO :
$group = array (); $group = array ();
foreach ($field_details[8] as $option_id => $option_details) { foreach ($field_details[9] as $option_id => $option_details) {
$options[$option_details[1]] = $option_details[2]; $options[$option_details[1]] = $option_details[2];
$group[] = & HTML_QuickForm :: createElement('radio', 'extra_' . $field_details[1], $option_details[1], $option_details[2] . '<br />', $option_details[1]); $group[] = & HTML_QuickForm :: createElement('radio', 'extra_' . $field_details[1], $option_details[1], $option_details[2] . '<br />', $option_details[1]);
} }
@ -441,7 +441,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra
break; break;
case USER_FIELD_TYPE_SELECT : case USER_FIELD_TYPE_SELECT :
$options = array (); $options = array ();
foreach ($field_details[8] as $option_id => $option_details) { foreach ($field_details[9] as $option_id => $option_details) {
$options[$option_details[1]] = $option_details[2]; $options[$option_details[1]] = $option_details[2];
} }
$form->addElement('select', 'extra_' . $field_details[1], $field_details[3], $options, ''); $form->addElement('select', 'extra_' . $field_details[1], $field_details[3], $options, '');
@ -450,7 +450,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra
break; break;
case USER_FIELD_TYPE_SELECT_MULTIPLE : case USER_FIELD_TYPE_SELECT_MULTIPLE :
$options = array (); $options = array ();
foreach ($field_details[8] as $option_id => $option_details) { foreach ($field_details[9] as $option_id => $option_details) {
$options[$option_details[1]] = $option_details[2]; $options[$option_details[1]] = $option_details[2];
} }
$form->addElement('select', 'extra_' . $field_details[1], $field_details[3], $options, array ( $form->addElement('select', 'extra_' . $field_details[1], $field_details[3], $options, array (
@ -478,7 +478,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra
$form->applyFilter('theme', 'trim'); $form->applyFilter('theme', 'trim');
break; break;
case USER_FIELD_TYPE_DOUBLE_SELECT : case USER_FIELD_TYPE_DOUBLE_SELECT :
foreach ($field_details[8] as $key => $element) { foreach ($field_details[9] as $key => $element) {
if ($element[2][0] == '*') { if ($element[2][0] == '*') {
$values['*'][$element[0]] = str_replace('*', '', $element[2]); $values['*'][$element[0]] = str_replace('*', '', $element[2]);
} else { } else {

Loading…
Cancel
Save