Closed (won't fix)
Project:
Date
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2011 at 21:30 UTC
Updated:
26 Oct 2018 at 02:59 UTC
Jump to comment: Most recent
function calendar_build_month():
When building URL for weekno column, weekno URL missing view arguments. Assume my View has 2 arguments, this code does not include the 2nd argument.
I found the issue and to fix:
Old code:
$url = $view->get_path() .'/'. $view->date_info->year .'-W'. $week;
...
$weekno = l($week, $url, array('query' => !empty($view->date_info->append) ? $view->date_info->append : ''));
Should be:
$url = date_real_url($view, NULL, $view->date_info->year .'-W'. $week);
$weekno = l($week, $url); // no more query append needed here
The key is replace the manual (missing) code by the better function date_real_url().
Comments
Comment #1
damienmckennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.