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

Lookup Form not working with Arabic characters

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

      For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

      Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

      Attachments

        1. fieldlookup.patch
          0.4 kB
          Taher Alkhateeb
        2. search_party_after_submit.png
          161 kB
          Taher Alkhateeb
        3. search_party_before_submit.png
          161 kB
          Taher Alkhateeb
        4. XHR_Screenshot_27_06_2012.png
          75 kB
          Taher Alkhateeb

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sascha Sascha Schumann
            taher Taher Alkhateeb
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment