Too few arguments to bat_unit_state_options()

Created on 26 May 2023, over 1 year ago
Updated 5 April 2024, 7 months ago

Problem/Motivation

ArgumentCountError: Too few arguments to function bat_unit_state_options(), 1 passed in /var/www/html/web/modules/contrib/bat/modules/bat_fullcalendar/src/Form/FullcalendarEventManagerForm.php on line 139 and exactly 2 expected in bat_unit_state_options() (line 471 of /var/www/html/web/modules/contrib/bat/modules/bat_unit/bat_unit.module)

Recent code clean up has removed a needed default value from the 2nd parameter on `bat_unit_state_options()`.

This default value was needed because this function is being called with just one parameter from `FullCalendarEventManagerForm` and `BatStateWidget`.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇦Canada dtarc

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

Comments & Activities

Production build 0.71.5 2024