forked from extern/egroupware
Add project name to list of fields available for export
This commit is contained in:
parent
c3170b44bd
commit
ccbe2dfb04
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user