This is an automated email from the ASF dual-hosted git repository.
pawan pushed a commit to branch release18.12
in repository
https://gitbox.apache.org/repos/asf/ofbiz-plugins.gitThe following commit(s) were added to refs/heads/release18.12 by this push:
new 7afe2b7 Fixed: Visit disabling causes NullPointerException on ecomm groovy script(OFBIZ-12173)
7afe2b7 is described below
commit 7afe2b73e596969f56a5f7ea782387e35b1561dd
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