Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I filter with Next calendar month in the report, I would only get those records with people born next month #26

Open
bjendres opened this issue May 5, 2022 · 2 comments

Comments

@bjendres
Copy link
Member

bjendres commented May 5, 2022

@timindaburgh writes on CiviCRM mattermost:

When I filter with Next calendar month in the report, I would only get those records with people born next month

I haven't looked at this extension in a long time, but that sounds weird. HERE it tries to use the birthday rather then the birth date for the filter.

Could you try to post the generated SQL (by adding Civi::log()->debug($sql); HERE)?

@bjendres
Copy link
Member Author

bjendres commented May 5, 2022

And: how do you even have contacts in the database born next month? :)

@timindaburgh
Copy link

And: how do you even have contacts in the database born next month? :)
Indeed... we don't - would take a wizard.

When I select Next calendar month in the field labeled Birthday, the report shows no matches even though I have many records of people born in previous years within the month of June. However, if I add no filter to Birthday and refresh the report, I get the full list of birthdays for the whole calendar year beginning a record of someone celebrating a birthday tomorrow, i.e. Name, May 6th, 2022.

On a bit of a tangent, the birthday shown would make more sense to me if it was written as May 6th and not May 6th, 2022. The date of the report already dictates 2022 and showing a birthday in that format may be confused with the Date of birth of someone with that record.

As a newbie in code, how would I generate the SQL as mentioned with adding Civi::log()->debug($sql);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants