Add project name to list of fields available for export

This commit is contained in:
Nathan Gray 2011-04-14 14:40:29 +00:00
parent c3170b44bd
commit ccbe2dfb04
2 changed files with 2 additions and 1 deletions

View File

@ -100,6 +100,7 @@ class infolog_egw_record implements importexport_iface_egw_record
$links = egw_link::get_links('infolog', $_record['info_id'], 'projectmanager');
foreach($links as $link_id => $app_id) {
$this->record['pm_id'] = $app_id;
$this->record['project'] = egw_link::title('projectmanager', $app_id);
break;
}

View File

@ -17,7 +17,7 @@ class infolog_wizard_export_csv extends importexport_wizard_basic_export_csv
// Field mapping
$bo = new infolog_tracking();
$this->export_fields = array('info_id' => 'Infolog ID', 'pm_id' => 'Project ID') + $bo->field2label;
$this->export_fields = array('info_id' => 'Infolog ID', 'pm_id' => 'Project ID', 'project' => 'Project Name') + $bo->field2label;
// Custom fields
unset($this->export_fields['custom']); // Heading, not a real field