diff --git a/applications/product/servicedef/services_pricepromo.xml b/applications/product/servicedef/services_pricepromo.xml index 2c125dea52..5b67bec8da 100644 --- a/applications/product/servicedef/services_pricepromo.xml +++ b/applications/product/servicedef/services_pricepromo.xml @@ -323,6 +323,7 @@ under the License. + diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/price/PriceServices.java b/applications/product/src/main/java/org/apache/ofbiz/product/price/PriceServices.java index 25b70dbd39..9fb8580e7a 100644 --- a/applications/product/src/main/java/org/apache/ofbiz/product/price/PriceServices.java +++ b/applications/product/src/main/java/org/apache/ofbiz/product/price/PriceServices.java @@ -1217,6 +1217,7 @@ public class PriceServices { GenericValue product = (GenericValue)context.get("product"); String productId = product.getString("productId"); + String agreementId = (String)context.get("agreementId"); String currencyUomId = (String)context.get("currencyUomId"); String partyId = (String)context.get("partyId"); BigDecimal quantity = (BigDecimal)context.get("quantity"); diff --git a/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java b/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java index 5173333d09..7e4740207a 100644 --- a/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java +++ b/framework/common/src/main/java/org/apache/ofbiz/common/login/LoginServices.java @@ -437,6 +437,9 @@ public class LoginServices { public static void createUserLoginPasswordHistory(GenericValue userLogin) throws GenericEntityException{ int passwordChangeHistoryLimit = 0; + Delegator delegator = userLogin.getDelegator(); + String userLoginId = userLogin.getString("userLoginId"); + String currentPassword = userLogin.getString("currentPassword"); try { passwordChangeHistoryLimit = EntityUtilProperties.getPropertyAsInteger("security", "password.change.history.limit", 0).intValue(); } catch (NumberFormatException nfe) { @@ -942,9 +945,6 @@ public class LoginServices { } int passwordChangeHistoryLimit = 0; - Delegator delegator = userLogin.getDelegator(); - String userLoginId = userLogin.getString("userLoginId"); - String currentPassword = userLogin.getString("currentPassword"); try { passwordChangeHistoryLimit = EntityUtilProperties.getPropertyAsInteger("security", "password.change.history.limit", 0).intValue(); } catch (NumberFormatException nfe) {