From f779f5ac7fd84a6da3eb248009b7f03c5ffc5ea9 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 16 Oct 2017 09:34:38 +0200 Subject: [PATCH] Make sure we get the etemplate_exec_id --- api/js/etemplate/et2_widget_vfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index d34748c5d4..e4babfd3c1 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -1058,7 +1058,7 @@ var et2_vfsSelect = (function(){ "use strict"; return et2_inputWidget.extend( // we need an etemplate_exec_id for better handling serverside parts of // widgets and since we can not have a etemplate_exec_id specifically // for dialog template our best shot is to inherit its parent etemplate_exec_id. - this.dialog.template.etemplate_exec_id = this.getInstanceManager().etemplate_exec_id; + this.dialog.template.etemplate_exec_id = etemplate2.getByApplication(egw.app_name())[0].etemplate_exec_id; app.vfsSelectUI.et2 = this.dialog.template.widgetContainer; app.vfsSelectUI.vfsSelectWidget = this; this.dialog.div.on('load', function(e) {