[ 
http://jira.magnolia.info/browse/MAGNOLIA-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Haderka closed MAGNOLIA-550.
--------------------------------

    Resolution: Obsolete
      Assignee: Jan Haderka  (was: Philipp Bracher)

Not an issue as of 3.6.1 ... in fact was fixed while ago during refactoring of 
the script.

> mgnlRemoveParameter does not work if first parameter is replaced
> ----------------------------------------------------------------
>
>                 Key: MAGNOLIA-550
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-550
>             Project: Magnolia
>          Issue Type: Bug
>          Components: admininterface
>    Affects Versions: 2.1 Final
>         Environment: all
>            Reporter: Michael Aemisegger
>            Assignee: Jan Haderka
>            Priority: Minor
>   Original Estimate: 5 minutes
>  Remaining Estimate: 5 minutes
>
> If the first request parameter has to be replaced the funciton returned 
> appended an ampersand instead of a question mark to the URL.
> patch for revision 1437 of tagged version /magnolia2.1:
> diff -uBbPr originals/magnolia-2.1/src/webapp/admindocroot/js/generic.js 
> patchedForSendingPatches/magnolia-2.1/src/webapp/admindocroot/js/generic.js
> --- originals/magnolia-2.1/src/webapp/admindocroot/js/generic.js        
> 2005-08-31 11:30:51.000000000 +0200
> +++ 
> patchedForSendingPatches/magnolia-2.1/src/webapp/admindocroot/js/generic.js 
> 2005-09-17 16:38:42.000000000 +0200
> @@ -193,12 +193,17 @@
>         if (tmp[1])
>                 {
>                 var paramObj=tmp[1].split("&");
> +               var isQuestionMarkAppended = false;
>                 for (var i=0;i<paramObj.length;i++)
>                         {
>                         if (paramObj[i].indexOf(name+"=")!=0)
>                                 {
> -                               if (i==0) newHref+="?";
> +                               if (!isQuestionMarkAppended)
> +                               {
> +                                       newHref+="?";
> +                                       isQuestionMarkAppended = true;
> +                               }
>                                 else newHref+="&";
>                                 newHref+=paramObj[i];
>                                 }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to