Add option to choose to update or replace categories

This commit is contained in:
Nathan Gray 2010-10-19 17:27:10 +00:00
parent 9dae1bdbe0
commit e4884335af

View File

@ -195,6 +195,14 @@ class importexport_wizard_basic_import_csv
$sel_options['charset'] = $GLOBALS['egw']->translation->get_installed_charsets()+ $sel_options['charset'] = $GLOBALS['egw']->translation->get_installed_charsets()+
array('utf-8' => 'utf-8 (Unicode)'); array('utf-8' => 'utf-8 (Unicode)');
$preserv = $content; $preserv = $content;
if($this->mapping_fields['cat_id']) {
$sel_options['update_cats'] = array(
'add' => lang('Add'),
'replace'=> lang('Replace')
);
} else {
$content['no_cats'] = true;
}
unset ($preserv['button']); unset ($preserv['button']);
return $this->step_templates[$content['step']]; return $this->step_templates[$content['step']];
} }