[jira] [Updated] (OFBIZ-6496) error in parsing array in ajaxUpdateAreas

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-6496) error in parsing array in ajaxUpdateAreas

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-6496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gaudin Pierre updated OFBIZ-6496:
---------------------------------
    Description:
I had to use ajaxupdateareas to update dynamically data.
The call ajax contains parameters of type array.
{quote}
Parameter1={has,b,c},parameter2=A,parameter3=B
{quote}

Unfortunately, the function ajaxupdateareas Split the arguments via a simple Split(","). This also split the array...  . It is necessary to add a more complex regex to avoid to make Split into array. As attachment I put an available patch for the trunk version

  was:
I had to use ajaxupdateareas to update dynamically data.
The call ajax contains parameters of type array.
IE : Parameter1 = {has, b, c}, parameter2=A, parameter3=B

Unfortunately, the function ajaxupdateareas Split the arguments via a simple Split(","). This also split the array...  . It is necessary to add a more complex regex to avoid to make Split into array. As attachment I put an available patch for the trunk version


> error in parsing array in  ajaxUpdateAreas
> ------------------------------------------
>
>                 Key: OFBIZ-6496
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6496
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Gaudin Pierre
>             Fix For: Trunk
>
>         Attachments: selectall.js.patch
>
>
> I had to use ajaxupdateareas to update dynamically data.
> The call ajax contains parameters of type array.
> {quote}
> Parameter1={has,b,c},parameter2=A,parameter3=B
> {quote}
> Unfortunately, the function ajaxupdateareas Split the arguments via a simple Split(","). This also split the array...  . It is necessary to add a more complex regex to avoid to make Split into array. As attachment I put an available patch for the trunk version



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