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

Leonardo Uribe resolved TOMAHAWK-1447.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.10-SNAPSHOT
         Assignee: Leonardo Uribe

Thanks to Lutz Ulruch for provide this patch

> Invalid JavaScript in myFacesUtils.js in function myFacesKupuFormSubmit()
> -------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1447
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1447
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Editor
>    Affects Versions: 1.1.9
>            Reporter: Lutz Ulruch
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.10-SNAPSHOT
>
>
> originalFormOnSubmit should by a local var and the function should always 
> return a value:
> original faulty code:
> function myFacesKupuFormSubmit(){
>       for(var i=0 ; i<myFacesKupuFormsIds.length ; i++){
>               
> myFacesKupuEditors.prepareForm(document.forms[myFacesKupuFormsIds[i]], 
> myFacesKupuClientIDs[i]);
>       }
>       originalFormOnSubmit = myFacesKupuOriginalFormsOnSubmits[0]; // TODO : 
> Fix (How do we get the calling frame ??)
>       if( originalFormOnSubmit )
>                               return originalFormOnSubmit();
> }
> corrected:
> function myFacesKupuFormSubmit(){
>       for(var i=0 ; i<myFacesKupuFormsIds.length ; i++){
>               
> myFacesKupuEditors.prepareForm(document.forms[myFacesKupuFormsIds[i]], 
> myFacesKupuClientIDs[i]);
>       }
>       var originalFormOnSubmit = myFacesKupuOriginalFormsOnSubmits[0]; // 
> TODO : Fix (How do we get the calling frame ??)
>       if( originalFormOnSubmit ) {
>               return originalFormOnSubmit();
>       }
>       return true;
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to