Calendar ignore views' argument handling code in month view

JohnAlbin - April 6, 2008 - 13:20
Project:Calendar
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:JohnAlbin
Status:closed
Description

The argument handling code is quite powerful in views.

However, calendar’s _calendar_views_query_alter() will over-write the arguments with $_GET['q'] when using a month view.

The stated reason is to “make sure block views default to the current month”. Defaulting to the current month is a good idea, but ignoring the view’s argument handling code and forcing the current month is a bug.

AttachmentSize
argument-handling-code.patch887 bytes

#1

JohnAlbin - April 7, 2008 - 20:29
Assigned to:Anonymous» JohnAlbin

#2

KarenS - April 13, 2008 - 11:14

Thanks for the patch and I apologize for not getting to it right away. I am fixing a computer melt-down that finally resulted in starting all over with a new computer and will come back and review this once I'm functional again.

If anyone else has reviewed the patch, please jump in and indicate whether it seems to work and I'll prioritize these patches first when I'm back in commission.

#3

KarenS - April 29, 2008 - 15:29
Status:needs review» fixed

Good catch, and you're absolutely correct. This is now fixed. Thanks!

#4

gionnibgud - April 29, 2008 - 16:52

Hi is this issue fixed in the 2008-Apr-24 dev?
I just downloaded it and I still have a problem on the node view where the block mini calendar picks up the nid from node/nid as an argument therefore changing month. From what I understand this shoudn't happen and the block should default to current month.

Example
node/6 switch the block calendar to June 2008

thx

#5

JohnAlbin - April 29, 2008 - 17:48

gionnibgud,

Since Karen just committed the patch today, the answer to “is this issue fixed in the 2008-Apr-24 dev?” is clearly no.

-dev releases automatically get made every 12 hours if there are updates to the code in CVS. So you just need to wait a few hours.

#6

gionnibgud - April 29, 2008 - 19:49

D'oh! Now I understand. Thanks for replying JohnAlbin.

#7

Anonymous (not verified) - May 13, 2008 - 19:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#8

jenlampton - June 23, 2009 - 07:57
Version:5.x-2.x-dev» 6.x-2.x-dev
Status:closed» active

[edit] nevermind, args are working in 6.x it's just relative args I can't figure out. will open a new issue.

Jen

#9

jenlampton - June 23, 2009 - 08:09
Version:6.x-2.x-dev» 5.x-2.x-dev
Status:active» closed

change back

 
 

Drupal is a registered trademark of Dries Buytaert.