When exporting if custom project is not set, use current project title for Project field

This commit is contained in:
Nathan Gray 2014-10-29 15:27:40 +00:00
parent e47d4e1dd0
commit b707bde89f

View File

@ -83,6 +83,12 @@ class timesheet_export_csv implements importexport_iface_export_plugin {
// support other selectors atm.
foreach ($selection as $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']) {
importexport_export_csv::convert($record, timesheet_egw_record::$types, 'timesheet', $this->selects);
} else {