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

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately 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.