From d1c5bf22430a591648f8dfd55c7df0590f82b24f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 13 Nov 2013 23:28:26 +0000 Subject: [PATCH] Use current app to get around missing etemplate run rights --- etemplate/js/et2_widget_file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_file.js b/etemplate/js/et2_widget_file.js index d00bb78da5..58ba4727ba 100644 --- a/etemplate/js/et2_widget_file.js +++ b/etemplate/js/et2_widget_file.js @@ -138,7 +138,7 @@ var et2_file = et2_inputWidget.extend( onError: function(event, name, error) { return self.onError(event,name,error);}, sendBoundary: window.FormData || jQuery.browser.mozilla, beforeSend: function(form) { return self.beforeSend(form);}, - url: egw.ajaxUrl("etemplate_widget_file::ajax_upload::etemplate"), + url: egw.ajaxUrl(self.egw().getAppName()+".etemplate_widget_file.ajax_upload.etemplate"), autoclear: !(this.options.onchange) },this.asyncOptions); this.asyncOptions.fieldName = this.options.id;