From be0878f883607879f63181796b16a4d5095e8c98 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 13 Jan 2014 15:04:30 +0000 Subject: [PATCH] Use this.egw() to get the correct (app level) data cache, which stores appname internally. Fixes permission denied popup when updating. --- etemplate/js/et2_extension_nextmatch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 1e37720111..73223eedaf 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -448,7 +448,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], switch(_type) { case "update": - if(!egw().dataRefreshUID(uid)) + if(!this.egw().dataRefreshUID(uid)) { // Could not update just that row this.applyFilters(); @@ -457,9 +457,9 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], break; case "delete": // Blank the row - egw().dataStoreUID(uid,null); + this.egw().dataStoreUID(uid,null); // Stop caring about this ID - egw().dataUnregisterUID(uid); + this.egw().dataUnregisterUID(uid); // Update the count this.options.settings.total -= 1; // This triggers an invalidate, which may update the grid in needed