[ofbiz-plugins] branch trunk updated: Fixed: getJs unknown in Webpos (OFBIZ-11932)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Fixed: getJs unknown in Webpos (OFBIZ-11932)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 68e603f  Fixed: getJs unknown in Webpos (OFBIZ-11932)
68e603f is described below

commit 68e603fb4ba63cee75bc22253817065a44763678
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Sat Aug 1 13:04:34 2020 +0200

    Fixed: getJs unknown in Webpos (OFBIZ-11932)
   
    R17 is not affected
---
 webpos/webapp/webpos/WEB-INF/controller.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/webpos/webapp/webpos/WEB-INF/controller.xml b/webpos/webapp/webpos/WEB-INF/controller.xml
index e98bd67..dd62358 100644
--- a/webpos/webapp/webpos/WEB-INF/controller.xml
+++ b/webpos/webapp/webpos/WEB-INF/controller.xml
@@ -495,6 +495,17 @@
         <response name="success" type="request" value="json"/>
         <response name="error" type="request" value="json"/>
     </request-map>
+
+    <request-map uri="getJs" method="get">
+        <security https="false" auth="false"/>
+        <response name="success" type="request" value="js"/>
+        <response name="error" type="request" value="js"/>
+    </request-map>
+    <request-map uri="js">
+        <security direct-request="false"/>
+        <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="jsResponseFromRequest"/>
+        <response name="success" type="none"/>
+    </request-map>
     
     <!-- View Mappings -->
     <view-map name="error" type="ftl" page="component://common/webcommon/error/Error.ftl"/>