mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fix handling of missing ID (usually from empty placeholder)
This commit is contained in:
parent
fa8861ef38
commit
3a49e4cfec
@ -56,13 +56,13 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
var idsArr = _ids.ids;
|
||||
for (var i = 0; i < idsArr.length; i++)
|
||||
{
|
||||
idsArr[i] = idsArr[i].split("::").pop();
|
||||
// empty placeholder gets reported --> ignore it
|
||||
if (!idsArr[i])
|
||||
{
|
||||
delete idsArr[i];
|
||||
i--;
|
||||
idsArr.splice(i,1);
|
||||
continue;
|
||||
}
|
||||
idsArr[i] = idsArr[i].split("::").pop();
|
||||
}
|
||||
|
||||
// Calculate the ids parameters
|
||||
|
Loading…
Reference in New Issue
Block a user