Problem/Motivation
Visiting the Watchdog mailer settings page after updating from ^2 to ^3, I get the following Warning:
Warning: foreach() argument must be of type array|object, null given in Drupal\watchdog_mailer\Form\SettingsForm->buildForm() (Zeile 247 in /web/modules/contrib/watchdog_mailer/src/Form/SettingsForm.php).
Once this is fixed, we should publish 3.0.0-rc2 and make it the suggested version!
Steps to reproduce
Install watchdog mailer ^2
Update to watchdog mailer ^3
Run updates
Visit the settings page and see the warning
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork watchdog_mailer-3484810
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
anybodyLooks like the update path has a bug or is incomplete. @lrwebks can you fix this?
Comment #3
anybody$notificationObjects = $config->get('notification_objects');should return an empty array but returns null, because it's not set as array in the update hook.
Comment #4
anybodyComment #6
lrwebks commentedComment #7
lrwebks commentedComment #8
anybodyWhat's left to be done? Isn't this fine already?
Comment #9
lrwebks commentedPatch works, RTBC!
Comment #10
anybodyThanks for the review!