mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Add option to choose to update or replace categories
This commit is contained in:
parent
9dae1bdbe0
commit
e4884335af
@ -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']];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user