[ https://issues.apache.org/jira/browse/OFBIZ-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-5045. ---------------------------------- Resolution: Fixed Fix Version/s: Release Branch 12.04 Release Branch 11.04 Release Branch 10.04 > Edit Estimated Ship Date or Estimated Delivery Date brings on date format > error > ------------------------------------------------------------------------------- > > Key: OFBIZ-5045 > URL: https://issues.apache.org/jira/browse/OFBIZ-5045 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Reporter: Paul Foxworthy > Assignee: Sascha Rodekamp > Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, > Release Branch 12.04 > > Attachments: OFBIZ-5045_EditOrderItemEstimatedDates > > Original Estimate: 1h > Remaining Estimate: 1h > > On demo site, enter the URL > https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderview?orderId=DEMO10091 > In Action screenlet, choose Edit Items > In Estimated Delivery Date, use calendar and choose a date. The date > presented will be formatted according to your locale. > Click on Update Items. An error message is displayed to say the date is not > in the correct format. > With the changes for localized dates, there are two input elements, one > hidden one for a plain date suitable for conversion to a Timestamp, and the > other displayed to the user in localized format. The second input element > should not be processed by the updateApprovedOrderItems service. > updateApprovedOrderItems uses string-map-prefixes of isdm_ and iddm_ for > estimated ship and delivery dates respectively. So the maps processed by the > service contain both plain and localized dates. > The patch adds an if statement to ignore members of the isdm and iddm maps > with keys that have a suffix of _i18n. > I have grepped all of the Ofbiz code for any other service that uses dates > with string-map-prefix, and updateApprovedOrderItems is the only one, so I > believe the problem won't occur anywhere else. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira