Etemplate: More fixes for row count when updating / adding

Now fixed the situation where 1 row was updated & 1 added, but the added one did not match filter and was not returned when server was asked.  Now removed blank row waiting for it, and keeping row count consistent
This commit is contained in:
nathangray
2020-09-01 14:48:50 -06:00
parent 953a132e9c
commit 210c54b689
3 changed files with 25 additions and 5 deletions

View File

@@ -806,7 +806,10 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
);
} catch (e) {
// Remove this callback from the list
registeredCallbacks[_uid].splice(i, 1);
if(typeof registeredCallbacks[_uid] != "undefined")
{
registeredCallbacks[_uid].splice(i, 1);
}
}
}
}