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