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

mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release24.09 by this push:
     new 4c2ac21c31 Fixed: hasValidStateProvince returns String but declared 
Map (OFBIZ-13533)
4c2ac21c31 is described below

commit 4c2ac21c310d446b9136385f2729d45e0001e7c6
Author: Mridul Pathak <[email protected]>
AuthorDate: Wed Sep 9 20:22:51 2026 +0530

    Fixed: hasValidStateProvince returns String but declared Map (OFBIZ-13533)
    
    Correct the declared return type of internal helper hasValidStateProvince 
from Map to String, preventing a GroovyCastException when validating addresses 
missing a required state/province for USA or CAN.
---
 .../org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy
 
b/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy
index ed39fb759d..e4e45683e6 100644
--- 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy
+++ 
b/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy
@@ -59,7 +59,7 @@ Map updateContactMech() {
 /**
  * locale function to control if the state province is mandatoring
  */
-Map hasValidStateProvince(String countryGeoId, String stateProvinceGeoId) {
+String hasValidStateProvince(String countryGeoId, String stateProvinceGeoId) {
     String errorMessage
     if (!stateProvinceGeoId) {
         if (countryGeoId == 'USA') {

Reply via email to