Add calendar ID to field mapping options

This commit is contained in:
Nathan Gray 2011-04-06 23:27:22 +00:00
parent 49acbabce2
commit 20b6a2f2ee
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class calendar_wizard_export_csv extends importexport_wizard_basic_export_csv
parent::__construct();
// Field mapping
$bo = new calendar_tracking();
$this->export_fields = $bo->field2label;
$this->export_fields = array('id' => 'Calendar ID') + $bo->field2label;
$custom = config::get_customfields('calendar', true);
foreach($custom as $name => $data) {
$this->export_fields['#'.$name] = $data['label'];

View File

@ -28,7 +28,7 @@ class calendar_wizard_import_csv extends importexport_wizard_basic_import_csv
// Field mapping
$tracking = new calendar_tracking();
$this->mapping_fields = $tracking->field2label;
$this->mapping_fields = array('id' => 'Calendar ID') + $tracking->field2label;
// Actions
$this->actions = array(