mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Use id list instead of just the first ID when update returns no data
(update, total <=0)
This commit is contained in:
parent
05efd753fe
commit
0738ccc0f3
@ -972,8 +972,12 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
||||
}
|
||||
else if(this.type == et2_nextmatch.UPDATE)
|
||||
{
|
||||
// Remove row from controller
|
||||
this.controller.deleteRow(this.uid);
|
||||
// Remove rows from controller
|
||||
row_ids.forEach(id =>
|
||||
{
|
||||
let uid = `${this.prefix}::${id}`;
|
||||
this.controller.deleteRow(uid);
|
||||
});
|
||||
|
||||
// Adjust total rows, clean grid
|
||||
this.controller._grid.setTotalCount(this.nm.controller._grid._total - row_ids.length);
|
||||
|
Loading…
Reference in New Issue
Block a user