birthdays_user_hide_year option doesn't work

eridari - April 3, 2009 - 10:49
Project:Birthdays
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:eridari
Status:reviewed & tested by the community
Description

The option to hide user's age and year of birth doesn't work because of the mistake in checking this value in $account object. For version 6.x-1.0 it is here:
Should change $account->birthdays_user_hide_year
to $account->{$_birthdays_field->name}['birthdays_user_hide_year']
in lines # 715, 747, 988, 1037.
And also add this global $_birthdays_field;

#1

eridari - April 3, 2009 - 10:52

...And also add this global $_birthdays_field; after lines #986, 1021

#2

dunkelfuerst - May 18, 2009 - 20:39

okay, you have to change that in the page.inc, too.

i made a patch for this:
http://dunkelfuerst.com/birthdays.patch

its huge, because i reformattet the files...

#3

dunkelfuerst - May 18, 2009 - 20:40

okay, i'll upload the file here...

AttachmentSize
birthdays.patch 75.13 KB

#4

Grey Teardop - June 2, 2009 - 11:35

Thanks for patch, seems to work for me.
Here is it without reformatting.

AttachmentSize
birthdays-6.x-1.0-birthdays_user_hide_year.patch 3.67 KB

#5

jari - June 20, 2009 - 11:00
Status:active» reviewed & tested by the community

Installed, tested and seems to work for me too.

#6

darrenj1 - July 22, 2009 - 14:39

Can someone please tell me what you actually do with a patch.

#7

Grey Teardop - July 22, 2009 - 17:47
 
 

Drupal is a registered trademark of Dries Buytaert.