Avoid server side validation error.

Fixes can't go further than choosing how addressbook categories get exported.
This commit is contained in:
Nathan Gray 2014-07-08 21:10:13 +00:00
parent 8673bad279
commit 57bd7c7a9b

View File

@ -107,12 +107,14 @@ class addressbook_wizard_export_contacts_csv extends importexport_wizard_basic_e
'explode'=> $settings[$field]
);
if($field == 'cat_id') {
$sel_options['explode_multiselects'][$row] = $cat_options;
$sel_options['explode_multiselects'][$row]['explode'] = $cat_options;
} else {
$sel_options['explode_multiselects'][$row] = $multi_options;
$sel_options['explode_multiselects'][$row]['explode'] = $multi_options;
}
$row++;
}
// Cheat server side validation, which can't handle different options per row
$sel_options['explode'] = $cat_options + $multi_options;
$preserv = $content;
//_debug_array($content['explode_multiselects']);
return $this->step_templates[$content['step']];