Author: ashish
Date: Thu Jun 14 18:21:37 2012
New Revision: 1350358

URL: http://svn.apache.org/viewvc?rev=1350358&view=rev
Log:
Applied bug fix from trunk r1350356.
Applied bug fix from jira issue - OFBIZ-4907 - Invalid relation name status 
item for Production Run.
Could not find relation for relationName: StatusItem for value 
[GenericEntity:WorkEffort]
Thanks Deepak for the contribution.

Modified:
    
ofbiz/branches/release12.04/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java

Modified: 
ofbiz/branches/release12.04/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java?rev=1350358&r1=1350357&r2=1350358&view=diff
==============================================================================
--- 
ofbiz/branches/release12.04/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
 (original)
+++ 
ofbiz/branches/release12.04/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
 Thu Jun 14 18:21:37 2012
@@ -310,7 +310,7 @@ public class ProductionRun {
         if (exist()) {
             if (currentStatus == null) {
                 try {
-                    currentStatus = 
productionRun.getRelatedOneCache("StatusItem");
+                    currentStatus = 
productionRun.getRelatedOneCache("CurrentStatusItem");
                 } catch (GenericEntityException e) {
                     Debug.logWarning(e.getMessage(), module);
                 }


Reply via email to