You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Christian Carlow (JIRA)" <ji...@apache.org> on 2013/11/18 16:21:21 UTC

[jira] [Commented] (OFBIZ-5397) Incorrect selected ship destination displayed on purchase order entry form

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

Christian Carlow commented on OFBIZ-5397:
-----------------------------------------

Using the @ symbol probably isn't the best one to use for separating fields.  I wanted to provide the facility destination contactMechIds in a drop down list rather than as a list of radio options and when the @ symbol is used, it is encoded as &#64; which prevents matching of the key.  This means that I don't get an accurate description in the drop down list of the selected record.  Replacing the @ symbol with something else such as _ fixes the issue but might cause problems if some facilities or contactMechIds contain an _.  

Is there a best practice when it comes to using special symbols to separate entity fields for unique selection?

> Incorrect selected ship destination displayed on purchase order entry form
> --------------------------------------------------------------------------
>
>                 Key: OFBIZ-5397
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5397
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Christian Carlow
>         Attachments: OFBIZ-5397.patch
>
>
> Selected ship group destinations are displayed incorrectly on the purchase order entry Shipping page.  The first ship group destination is selected without checking if any of the other destinations were selected.  Part of the problem is that the facilityId of the destination chosen is not specified in the parameters passed to CheckOutEvents finalizeOrderEntry function.
> To reproduce:
> 1.  Create an order to DemoSupplier
> 2.  Add any supplier product to the order and click Finalize Order
> 3.  Click Continue until you reach the Shipping page
> 4.  Choose the second shipping destination and click Continue
> 5.  Click the Shipping link to go back to the previous shipping page
> 6.  Notice that the second destination is not selected
> The second destination is actually assigned because it appears on the confirmation page but no code exists to check the correct radio option.  The facilityId will have to be passed in somehow to allow such logic to be correctly implemented.



--
This message was sent by Atlassian JIRA
(v6.1#6144)