Author: jacopoc
Date: Tue Aug 12 00:56:48 2008
New Revision: 685077
URL:
http://svn.apache.org/viewvc?rev=685077&view=revLog:
Fixed issue with empty lot id coming from submitted form.
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java?rev=685077&r1=685076&r2=685077&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java Tue Aug 12 00:56:48 2008
@@ -1487,7 +1487,7 @@
lotId = delegator.getNextSeqId("Lot");
createLotIfNeeded = Boolean.TRUE;
}
- if (lotId != null) {
+ if (UtilValidate.isNotEmpty(lotId)) {
try {
// Find the lot
GenericValue lot = delegator.findByPrimaryKey("Lot", UtilMisc.toMap("lotId", lotId));