mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
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');
|
$links = egw_link::get_links('infolog', $_record['info_id'], 'projectmanager');
|
||||||
foreach($links as $link_id => $app_id) {
|
foreach($links as $link_id => $app_id) {
|
||||||
$this->record['pm_id'] = $app_id;
|
$this->record['pm_id'] = $app_id;
|
||||||
|
$this->record['project'] = egw_link::title('projectmanager', $app_id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class infolog_wizard_export_csv extends importexport_wizard_basic_export_csv
|
|||||||
|
|
||||||
// Field mapping
|
// Field mapping
|
||||||
$bo = new infolog_tracking();
|
$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
|
// Custom fields
|
||||||
unset($this->export_fields['custom']); // Heading, not a real field
|
unset($this->export_fields['custom']); // Heading, not a real field
|
||||||
|
Loading…
Reference in New Issue
Block a user