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

ASF subversion and git services commented on OFBIZ-12260:
---------------------------------------------------------

Commit 99696b022814958b67f8a573d90b75f71293dc28 in ofbiz-framework's branch 
refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=99696b0 ]

Fixed: Xml Element Link type hidden-form fail to resolve the form
(OFBIZ-12260)

When you generate a link with the type hidden-form and the link present an 
update area, on the click jquery failed to resolve the form.

 Example of a current link generate :

  <a 
href="javascript:ajaxSubmitFormUpdateAreas('ListProductMeterActionMenus_delete_LF_1__0',
 
'embedded13009956-a841-47d3-86b1-b1931e6b430e,https://localhost:8443/catalog/control/ListProductMeters,productId=GZ-1000')">javascript:ajaxSubmitFormUpdateAreas('ListProductMeterActionMenus_delete_LF_1__0',
 
'embedded13009956-a841-47d3-86b1-b1931e6b430e,https://localhost:8443/catalog/control/ListProductMeters,productId=GZ-1000')</a>

The problem come from OfbizUtil.js:748

    var $form = jQuery("#" + form)

To solve it, we change the form resolution in the function 
ajaxSubmitFormUpdateAreas with use the form name instead the form id.

Thanks to Xin Wang for this suggest to fix it.


> Xml Element Link type hidden-form fail to resolve the form
> ----------------------------------------------------------
>
>                 Key: OFBIZ-12260
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12260
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework/widget
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Major
>              Labels: screen, widget
>         Attachments: OFBIZ-12260.patch, OFBIZ-12260.patch
>
>
> When you generate a link with the type hidden-form and the link present an 
> update area, on the click jquery failed to resolve the form.
> Example of a current link generate
> {code:java}
> <a 
> href="javascript:ajaxSubmitFormUpdateAreas('ListProductMeterActionMenus_delete_LF_1__0',
>  
> 'embedded13009956-a841-47d3-86b1-b1931e6b430e,https://localhost:8443/catalog/control/ListProductMeters,productId=GZ-1000')">javascript:ajaxSubmitFormUpdateAreas('ListProductMeterActionMenus_delete_LF_1__0',
>  
> 'embedded13009956-a841-47d3-86b1-b1931e6b430e,https://localhost:8443/catalog/control/ListProductMeters,productId=GZ-1000')</a>{code}
> The problem come from OfbizUtil.js:748
> {code:java}
> var $form = jQuery("#" + form){code}
> To solve the it this, I propose to extend all hidden-form with add the 
> missing id attribute.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to