Bug: when using views date argument with granularity of month, if only year is given in the argument (ie /2009), then the title views argument title shows as 'January, 2009'

Expected: I expect the title to be the granularity of the argument: '2009'

Patch: attached is a patch to date_api_argument_handler.inc that sets the title to the granularity of the argument given and not the granularity of the argument settings.

Comments

donquixote’s picture

Cool!
I was looking for the same thing, but didn't find the arg_granularity method.

osopolar’s picture

Version: 6.x-2.4 » 6.x-2.10
Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

This works for me too. Not sure if this problem exists in D7 too.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, date_api_argument_title_granularity.patch, failed testing.

osopolar’s picture

StatusFileSize
new699 bytes

Made patch p1 compatible by prefixing a/ b/.

osopolar’s picture

Status: Needs work » Needs review
osopolar’s picture

Status: Needs review » Reviewed & tested by the community

According to #2 I set this to RTBC again as the code itself didn't change.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: date_api_argument_title_granularity-599232-4.patch, failed testing.

osopolar’s picture

Can't see how the failure belongs to this issue, what is wrong?

damienmckenna’s picture

Status: Needs work » Closed (won't fix)

Unfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this request is relevant for D7 too, please reopen the issue. Thanks.