[ofbiz-plugins] branch release17.12 updated: Fixed: Visit disabling causes NullPointerException on ecomm groovy script(OFBIZ-12173)

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

[ofbiz-plugins] branch release17.12 updated: Fixed: Visit disabling causes NullPointerException on ecomm groovy script(OFBIZ-12173)

Pawan Verma-2
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/release17.12 by this push:
     new 38419ef  Fixed: Visit disabling causes NullPointerException on ecomm groovy script(OFBIZ-12173)
38419ef is described below

commit 38419ef257a9de03fd8ac76c78b3d296fc99deb9
Author: Pawan Verma <[hidden email]>
AuthorDate: Fri Feb 12 09:25:01 2021 +0530

    Fixed: Visit disabling causes NullPointerException on ecomm groovy script(OFBIZ-12173)
   
    Used UtilHttp.getSessionId() instead of visit to get session Id.
   
    Thanks: Giulio, Jacopo and Deepak.
---
 ecommerce/groovyScripts/customer/NewCustomer.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecommerce/groovyScripts/customer/NewCustomer.groovy b/ecommerce/groovyScripts/customer/NewCustomer.groovy
index e765a3d..cfa093b 100644
--- a/ecommerce/groovyScripts/customer/NewCustomer.groovy
+++ b/ecommerce/groovyScripts/customer/NewCustomer.groovy
@@ -54,5 +54,5 @@ if (userInfoMap) {
     request.getSession().setAttribute("userInfoMap", userInfoMap)
 }
 
-donePage = "main;" + parameters.visit.sessionId
+donePage = "main;" + UtilHttp.getSessionId(request)
 context.donePage = donePage