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
#33238
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:
Code:
if ($cal_month) {     ...     if ($cal_from) {         $query->where($cal_from);     }     if ($cal_to) {         $query->where($cal_to);     } } Outside of the month filter, t
he set calendar filters are not included in the query.
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);     } }
on:
    • 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
#33240
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.

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
#33242
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
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.

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
#33270
@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
#33294
thank you!
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