Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5453

Set field in (at least) widget screen does not take into account a locale for (at least) the Float type

    XMLWordPrintableJSON

Details

    Description

      While working on Google Maps API migration from V2 to V3 I discovered an issue which is reflected by those 2 commits

      In other words if you pass something like
      <set field="geoPoints[+0].lat" value="37.4419" type="Float"/>
      in a French OS or browser context you will get 37.0 in OFBiz context
      But if you pass
      <set field="geoPoints[+0].lat" value="37,4419" type="Float"/>
      in an English OS or browser context you will get 37.0 in OFBiz context

      So we need either to fix this in code (ModelWidgetAction.java[132,171]) or to add a way to pass a locale to force/fix the Float(others?) value in OFBiz context (this is needed for instance for geolocation)

      Attachments

        1. OFBIZ-5453.patch
          4 kB
          Adrian Crum

        Activity

          People

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: