Unit event data still stored after event state is deleted

Created on 7 December 2017, almost 7 years ago
Updated 14 January 2024, 10 months ago

No units are being returned between the 1st and 24th January 2018, even though there are units and availability

I'm passing the following into matching units:

Start date is:

$start_date = '2018-01-16 00:00:00';

End date is:
$end_date = '2018-01-19 00:00:00';

Valid states = 0;

$calendar->getMatchingUnits($start_date, $end_date, $valid_states, array());

I've tracked this down to the function in getEventsItemized and itemizeDays in AbstractCalendar.php and its returning a state value that doesn't exist in the db.

Any idea as to whats going on?

🐛 Bug report
Status

Closed: outdated

Version

1.33

Component

Code

Created by

🇬🇧United Kingdom rviner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy afagioli Rome

    No more support for BAT on Drupal 7.
    Latest BAT for Drupal 10 has full support from the Community and most of the bugs fixed.
    Consider upgrading.

Production build 0.71.5 2024