From d058eda29f269f4dc2fafb70e2f2040ead276681 Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Fri, 17 Apr 2020 15:53:00 +0200 Subject: [PATCH] FEAT #13678 TIME 0:20 Notifications properties fix --- migration/20.10/migrateNotificationsProperties.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migration/20.10/migrateNotificationsProperties.php b/migration/20.10/migrateNotificationsProperties.php index 3aa007c1192..96b18129efd 100644 --- a/migration/20.10/migrateNotificationsProperties.php +++ b/migration/20.10/migrateNotificationsProperties.php @@ -26,8 +26,10 @@ foreach ($customs as $custom) { $users = array_column($users, 'id'); if (!empty($users)) { $users = implode(',', $users); - \Notification\models\NotificationModel::update(['notification_sid' => $notification['notification_sid'], 'diffusion_properties' => $users]); + } else { + $users = null; } + \Notification\models\NotificationModel::update(['notification_sid' => $notification['notification_sid'], 'diffusion_properties' => $users]); } } $migrated++; -- GitLab