mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Timesheet: Fix JS error when adding with link filter
This commit is contained in:
parent
4e247403af
commit
12f3d3a8ee
@ -132,10 +132,18 @@ class TimesheetApp extends EgwApp
|
|||||||
|
|
||||||
if (nm_value.col_filter && nm_value.col_filter.linked)
|
if (nm_value.col_filter && nm_value.col_filter.linked)
|
||||||
{
|
{
|
||||||
var split = nm_value.col_filter.linked.split(':') || '';
|
if(typeof nm_value.col_filter.linked === "string")
|
||||||
|
{
|
||||||
|
const split = nm_value.col_filter.linked.split(':') || '';
|
||||||
extras.link_app = split[0] || '';
|
extras.link_app = split[0] || '';
|
||||||
extras.link_id = split[1] || '';
|
extras.link_id = split[1] || '';
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
extras.link_app = nm_value.col_filter.linked.app;
|
||||||
|
extras.link_id = nm_value.col_filter.linked.id;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (nm_value.col_filter && nm_value.col_filter.pm_id)
|
if (nm_value.col_filter && nm_value.col_filter.pm_id)
|
||||||
{
|
{
|
||||||
extras.link_app = 'projectmanager';
|
extras.link_app = 'projectmanager';
|
||||||
|
Loading…
Reference in New Issue
Block a user