mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:22:14 +01:00
When exporting if custom project is not set, use current project title for Project field
This commit is contained in:
parent
388ac66495
commit
08ed554df5
@ -83,6 +83,12 @@ class timesheet_export_csv implements importexport_iface_export_plugin {
|
|||||||
// support other selectors atm.
|
// support other selectors atm.
|
||||||
foreach ($selection as $identifier) {
|
foreach ($selection as $identifier) {
|
||||||
$record = new timesheet_egw_record($identifier);
|
$record = new timesheet_egw_record($identifier);
|
||||||
|
|
||||||
|
// If Project is not set, set it to current project title
|
||||||
|
if(!$record->ts_project && $record->pm_id)
|
||||||
|
{
|
||||||
|
$record->ts_project = egw_link::title ('projectmanager', $record->pm_id);
|
||||||
|
}
|
||||||
if($options['convert']) {
|
if($options['convert']) {
|
||||||
importexport_export_csv::convert($record, timesheet_egw_record::$types, 'timesheet', $this->selects);
|
importexport_export_csv::convert($record, timesheet_egw_record::$types, 'timesheet', $this->selects);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user