mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Parse project number into project ID when importing
This commit is contained in:
parent
c640d4096a
commit
1e1447e135
@ -305,6 +305,11 @@ class timesheet_import_csv implements importexport_iface_import_plugin
|
|||||||
list($lastname,$firstname,$org_name) = explode(',',$record['addressbook']);
|
list($lastname,$firstname,$org_name) = explode(',',$record['addressbook']);
|
||||||
$record['addressbook'] = self::addr_id($lastname,$firstname,$org_name);
|
$record['addressbook'] = self::addr_id($lastname,$firstname,$org_name);
|
||||||
}
|
}
|
||||||
|
if ($record['pm_id'] && !is_numeric($record['pm_id']))
|
||||||
|
{
|
||||||
|
$pms = Link::query('projectmanager',$record['pm_id']);
|
||||||
|
$record['pm_id'] = key($pms);
|
||||||
|
}
|
||||||
|
|
||||||
if ( $_definition->plugin_options['conditions'] )
|
if ( $_definition->plugin_options['conditions'] )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user