From 089c71071193232000dcefec477911c47173e951 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sun, 11 Oct 2020 17:19:29 +0000 Subject: [PATCH] [SETTINGS][NOTIFICATIONS] Fix error when displaying the user notification settings page --- src/Controller/UserPanel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/UserPanel.php b/src/Controller/UserPanel.php index 8d976e33cf..ce936ceea7 100644 --- a/src/Controller/UserPanel.php +++ b/src/Controller/UserPanel.php @@ -197,10 +197,10 @@ class UserPanel extends AbstractController case Types::INTEGER: if ($name == 'target_actor_id') { $form_defs['placeholder'][$name] = ['target_actors', TextType::class, ['data' => $val, 'label' => _m($labels[$name]), 'help' => _m($help[$name])], 'transformer' => ActorArrayTransformer::class]; - break; } - // no break + break; default: + dd($type_str); throw new Exception("Structure of table user_notification_prefs changed in a way not accounted to in notification settings ({$name})", 500); } }