help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
calendar_from / calendar_to are ignored unless filter_month is set – affects ban
calendar_from / calendar_to are ignored unless filter_month is set – affects ban
9 months 3 weeks ago - 9 months 3 weeks ago
I was able to fix an error with ChatGPT:
JEM 4.3.x: ()
Description:
In JEM 4.3.x, the model states
Without a set month filter, the calendar filters are completely ignored.
This affects, among others:
JEM banner module (‘upcoming events’)
All lists that set calendar_from/to but do not use a month filter
This means that instead of the next events relative to today's date, only the first or last records of the entire table (sorted, ) are displayed.
Affected file:
components/com_jem/models/
eventslist .php
Cause:
In getListQuery(), calendar_from and calendar_to are only applied within this block:
he set calendar filters are not included in the query.
Expected behaviour:
().
Minimal fix (suggestion): components/com_jem/models/eventslist .php:456
on:
• Joomla! 5.4.2
• JEM 4.3.4 (Component + Banner-Modul)
• PHP 8.3
• MariaDB 10.11
chatgpt
that helps, best regards,
m.
JEM 4.3.x: ()
Description:
In JEM 4.3.x, the model states
Without a set month filter, the calendar filters are completely ignored.
This affects, among others:
JEM banner module (‘upcoming events’)
All lists that set calendar_from/to but do not use a month filter
This means that instead of the next events relative to today's date, only the first or last records of the entire table (sorted, ) are displayed.
Affected file:
components/com_jem/models/
eventslist .php
Cause:
In getListQuery(), calendar_from and calendar_to are only applied within this block:
Code:
if ($cal_month) {
...
if ($cal_from) {
$query->where($cal_from);
}
if ($cal_to) {
$query->where($cal_to);
}
}
Outside of the month filter, t
Expected behaviour:
().
Minimal fix (suggestion): components/com_jem/models/eventslist .php:456
Code:
// Apply calendar filters also without month filter
if (!$cal_month) {
if (!empty($cal_from)) {
$query->where($cal_from);
}
if (!empty($cal_to)) {
$query->where($cal_to);
}
}
• Joomla! 5.4.2
• JEM 4.3.4 (Component + Banner-Modul)
• PHP 8.3
• MariaDB 10.11
chatgpt
that helps, best regards,
m.
Last edit: 9 months 3 weeks ago by mercuri.
Please Log in or Create an account to join the conversation.
Re: calendar_from / calendar_to are ignored unless filter_month is set – affects ban
9 months 3 weeks ago
Thank you for reporting. We will check it out.
Happy with the support?
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Please Log in or Create an account to join the conversation.
Re: calendar_from / calendar_to are ignored unless filter_month is set – affects ban
9 months 2 weeks ago
This is fixed in the next relaase (JEM 4.4.0) which is coming soon.
If you want you can test it with the actual beta version:
github.com/jemproject/JEM-Project/raw/refs/heads/JEM-4.4.0-dev-bugfix-newfeatures/pkg_jem_440beta4.zip
If you want you can test it with the actual beta version:
github.com/jemproject/JEM-Project/raw/refs/heads/JEM-4.4.0-dev-bugfix-newfeatures/pkg_jem_440beta4.zip
Happy with the support?
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Please Log in or Create an account to join the conversation.
Re: calendar_from / calendar_to are ignored unless filter_month is set – affects ban
9 months 2 weeks ago
@mercuri, did you test Beta 4? Has the issue been resolved?
At the end of the day, computing and technology, like Joomla and JEM are here to help the end user and make our lives a little easier. Help us to be better.
Please Log in or Create an account to join the conversation.
Re: calendar_from / calendar_to are ignored unless filter_month is set – affects ban
9 months 1 week ago
thank you!
No. Still not - have other construction sites. I try it soon and will answer
No. Still not - have other construction sites. I try it soon and will answer
Please Log in or Create an account to join the conversation.
Time to create page: 0.496 seconds