Issue Details (XML | Word | Printable)

Key: WW-1323
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Rainer Hermanns
Reporter: Patrick Lightbody
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebWork

calendar tag produces URLs with included parameters

Created: 13/Jul/06 10:04 AM   Updated: 13/Jul/06 05:36 PM
Component/s: None
Affects Version/s: 2.2.3
Fix Version/s: 2.2.3


 Description  « Hide
For example:

<script type="text/javascript" src="/webwork/jscalendar/?startDate=07%2F10%2F2006&amp;endDate=07%2F13%2F2006calendar.js"></script>

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Hani Suleiman added a comment - 13/Jul/06 10:07 AM
Note also that the url is wrong, since not only did it include the params, but it also included them incorrectly, so that the end url is actually invalid and the js file is not loaded (which in turns breaks the datepicker).

Rainer Hermanns added a comment - 13/Jul/06 04:28 PM
This seems to be fixed in 2.2.2:
In datepicker.ftl the url is created without additional params:

<script type="text/javascript" src="<@ww.url value="/webwork/jscalendar/" encode='false'/>calendar.js"></script>

Can someone verify this please?

Patrick Lightbody added a comment - 13/Jul/06 04:31 PM
Rainer - my bad when opening the bug. The affected version is actually 2.2.3. hani just tried upgrading and ran in to this problem.

Rainer Hermanns added a comment - 13/Jul/06 04:34 PM
Then it is related to WW-1322...
head.ftl adds a <link.../> as well if parameters.calendarcss are set...
commiting a fix now...
Please recheck...

Thanks,
Rainer

Rainer Hermanns added a comment - 13/Jul/06 04:47 PM
ups... forgot adding missing includeParams='none'

just commited...

Rainer Hermanns added a comment - 13/Jul/06 05:36 PM
Fixed in CVS, please recheck and verify.