Creating a repeating activity fails with 'Mandatory values missing from API4' message - ActionSchedule::save:start_action_condition
CiviCRM 6.0.3, Drupal 10.4.5 (issue was found in v6.0.0 but reproduceble in latest)
Creating an activity with a yearly repeat for 3 occurances caused the contact screen to go into a hang state that can only be cleared by using the back button or closing the tab. Just recreated this on a local test system with a fresh install of Drupal 10 and CiviCRM with dummy data.
Steps to reproduce:
-
Go to any contact
-
Add basic details to a meeting activity (using dummy data contacts)
Scroll down and set the Repeat Activity to a once a year for three occurances:
-
Press Save- the 3 occurances are displayed
-
Press Continue - the screen darkend and will remain until dismissed
-
On dimissal we get confirmation that the activity has been created, but an error relating to the API4 is displayed
-
The logs display two warnings:
Warning: Trying to access array offset on value of type null in CRM_Core_Page_RecurringEntityPreview->run() (line 28 of /var/www/html/vendor/civicrm/civicrm-core/CRM/Core/Page/RecurringEntityPreview.php)
Warning: Undefined array key "intervalDateColumns" in CRM_Core_Page_RecurringEntityPreview->run() (line 28 of /var/www/html/vendor/civicrm/civicrm-core/CRM/Core/Page/RecurringEntityPreview.php)