You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Divesh Dutta (JIRA)" <ji...@apache.org> on 2015/01/03 13:36:34 UTC

[jira] [Commented] (OFBIZ-5942) Edit Shipment page is broken

    [ https://issues.apache.org/jira/browse/OFBIZ-5942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263518#comment-14263518 ] 

Divesh Dutta commented on OFBIZ-5942:
-------------------------------------

After researching on this issue, found that issue is in EditShipment form in ShipmentForms.xml . This form tries to display eventDate field because its a  IN parameter of service updateShipment and auto-fields-service tag is used to display field of updateShipment service. Now eventDate field is not field of Shipment entity. And system tries to get eventDate field from Shipment (GenericValue) entity. And due to recent changes  in commit number: 1646666 (OFBIZ-5004) this issue occurred.  

[~jacopoc] we need your help here. One fix which we have in mind is to change code in EditShipment.groovy file. We can put shipment generic value in a map .  And then form will try to get value from a Map instead of generic value. And since java Map returns null if key is not available in a Map. Doing this change, code will not blow up. But I am not sure if this is right solution. Please help us to find better solution. 

Here is example of what I am suggesting:

{code}

shipmentMap = [:];
shipmentMap.putAll(shipment);
context.shipment = shipmentMap;

{code}

> Edit Shipment page is broken
> ----------------------------
>
>                 Key: OFBIZ-5942
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5942
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>            Reporter: Divesh Dutta
>             Fix For: Trunk, 14.12.01
>
>         Attachments: EditShipmentPage.png
>
>
> Steps to reproduce this bug:
> 1) Create a sales order from Order manager application
> 2) Click on "New Shipment For Ship Group" button on Shipment Information section. 
> 3) Shipment will be created in system and you will be landed on Edit Shipment page. 
> 4) This page is broken and Event date field is not showing up. Also update button is not showing up. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)