Problem/Motivation
Since updating to 4.1.1 I am getting the following warnings when saving a node with a repeating date.
Warning: Undefined array key "time_wrapper" in Drupal\smart_date_recur\Entity\SmartDateRule::validateRecurring() (line 925 of /var/www/html/web/modules/contrib/smart_date/modules/smart_date_recur/src/Entity/SmartDateRule.php)
Warning: Trying to access array offset on value of type null in Drupal\smart_date_recur\Entity\SmartDateRule::validateRecurring() (line 925 of /var/www/html/web/modules/contrib/smart_date/modules/smart_date_recur/src/Entity/SmartDateRule.php)
Steps to reproduce
Update to 4.1.1
Open a node with a repeating date which ends "On Date"
Click save.
Proposed resolution
I haven't had a good look through the code so I don't want to suggest changes but I assume these errors are coming from the changes from this issue: https://www.drupal.org/project/smart_date/issues/3413612
Issue fork smart_date-3444046
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
akhil_01 commentedComment #5
akhil_01 commentedComment #6
mandclu commentedHere's a quick patch that should resolve the warnings. Please test it and let me know.
Comment #7
rollins commentedMP provided by @mandclu fixed the warning message
I think this can be merged
Comment #8
mandclu commentedThanks for the feedback. Merged in.