mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 14:40:34 +02:00
Etemplate: Fix nextmatch controller destroy() left some references
AJAX responses would then try to use them after the etemplate was destroyed, and fail.
This commit is contained in:
@ -131,6 +131,8 @@ export class et2_dataview_controller
|
||||
this._parentController = null;
|
||||
}
|
||||
}
|
||||
|
||||
this._grid = null;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -186,6 +188,9 @@ export class et2_dataview_controller
|
||||
*/
|
||||
update( clear? : boolean)
|
||||
{
|
||||
// Avoid update after destroy
|
||||
// Happens sometimes if AJAX response comes after etemplate unload
|
||||
if(!this._grid) return;
|
||||
|
||||
// ---------
|
||||
|
||||
|
Reference in New Issue
Block a user