Cannot remove recurring instance

Created on 15 February 2023, over 1 year ago
Updated 18 February 2023, over 1 year ago

Problem/Motivation

On the latest Smart Date v3.7, attempting to remove a recurring instance in the smart_date_recur submodule throws a WSOD:

ArgumentCountError: Too few arguments to function Drupal\smart_date_recur\Controller\Instances::__construct(), 0 passed in modules/contrib/smart_date/modules/smart_date_recur/src/Form/SmartDateRemoveInstanceForm.php on line 143 and exactly 2 expected in Drupal\smart_date_recur\Controller\Instances->__construct() (line 73 of modules/contrib/smart_date/modules/smart_date_recur/src/Controller/Instances.php).

Steps to reproduce

  1. Create a repeating event.
  2. Manage the repeating event instances.
  3. Remove the instance.

Proposed resolution

Every instance of new Instances(); should be generated by the class_resolver service since we're generating a controller. This will also setup future proofing for when the Instances controller has any services added/removed from it.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Smart Date Recur

Created by

πŸ‡ΊπŸ‡ΈUnited States collinhaines

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

Comments & Activities

Production build 0.71.5 2024