From bfef7e88da454fc41a3d5fdcbd7a049a1d8e6d9b Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 21 Mar 2024 09:55:43 +0100 Subject: [PATCH] fix: [publish] don't pop the list of failed servers before generating the error array --- app/Controller/EventsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 1b3f7d84d..e53c437be 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -3112,9 +3112,9 @@ class EventsController extends AppController $errors['Module'] = 'Module failure.'; } } else { + $errors['failed_servers'] = $result; $lastResult = array_pop($result); $resultString = (count($result) > 0) ? implode(', ', $result) . ' and ' . $lastResult : $lastResult; - $errors['failed_servers'] = $result; $message = __('Event published but not pushed to %s, re-try later. If the issue persists, make sure that the correct sync user credentials are used for the server link and that the sync user on the remote server has authentication privileges.', $resultString); } } else {