Author: jleroux Date: Thu Oct 18 19:21:28 2012 New Revision: 1399804 URL: http://svn.apache.org/viewvc?rev=1399804&view=rev Log: "Applied fix from trunk for revision: 1399761 " ------------------------------------------------------------------------ r1399761 | jleroux | 2012-10-18 20:15:38 +0200 (jeu., 18 oct. 2012) | 19 lines
A patch from Tom Burns "Find Inventory Event Planned Displays Error Message" https://issues.apache.org/jira/browse/OFBIZ-5054 In the Manufacturing Manager MRP feature MRP Log displays an error when Find is clicked in the Find Inventory Event Planned screenlet. To reproduce: 1. Create a Routing table (details beyond the scope of this note) 2. Navigate to the Manufacturing MRP feature. 3. Select Run MPR 4. Enter an MRP Name and Facility 5. Click Submit 6. Select MRP Log Tab 7. When Status is finished click Find in the Find Inventory Event Planned screenlet. Expected: MRP Plan Actual: Error message before MRP Plan Error on line 159, column 17 in component://manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl null is undefined. It cannot be assigned to initialQohEvent The problematic instruction: ---------- ==> assignment: initialQohEvent=null [on line 159, column 17 in component://manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl] ---------- Java backtrace for programmers: ---------- ... ------------------------------------------------------------------------ Modified: ofbiz/branches/release10.04/ (props changed) ofbiz/branches/release10.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl Propchange: ofbiz/branches/release10.04/ ------------------------------------------------------------------------------ Merged /ofbiz/trunk:r1399761 Modified: ofbiz/branches/release10.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl?rev=1399804&r1=1399803&r2=1399804&view=diff ============================================================================== --- ofbiz/branches/release10.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl (original) +++ ofbiz/branches/release10.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl Thu Oct 18 19:21:28 2012 @@ -160,8 +160,8 @@ document.lookupinventory.productId.focus <#assign errorEvents = delegator.findByAnd("MrpEvent", Static["org.ofbiz.base.util.UtilMisc"].toMap("mrpEventTypeId", "ERROR", "productId", inven.productId))> <#assign qohEvents = delegator.findByAnd("MrpEvent", Static["org.ofbiz.base.util.UtilMisc"].toMap("mrpEventTypeId", "INITIAL_QOH", "productId", inven.productId))> <#assign additionalErrorMessage = ""> - <#assign initialQohEvent = null> - <#assign productFacility = null> + <#assign initialQohEvent = ""> + <#assign productFacility = ""> <#if qohEvents?has_content> <#assign initialQohEvent = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(qohEvents)> </#if>

