From d184b054ddf6ab5324b0eb20740c87b09631b3b6 Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Wed, 12 Feb 2025 12:05:40 +0100 Subject: [PATCH] [JENKINS-75265] fix notification for l:task Change #9787 introduced a bug that lead so that the notificationBar was not properly showing with javascript error (cherry picked from commit 0ed487db0597e447b3095f2a016bb34f56ddfd77) --- core/src/main/resources/lib/layout/task/task.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/lib/layout/task/task.js b/core/src/main/resources/lib/layout/task/task.js index b0e95063bec8..8634ed0da54b 100644 --- a/core/src/main/resources/lib/layout/task/task.js +++ b/core/src/main/resources/lib/layout/task/task.js @@ -23,9 +23,9 @@ Behaviour.specify("a.task-link-no-confirm", "task-link", 0, function (el) { headers: crumb.wrap({}), }).then((rsp) => { if (rsp.ok) { - notificationBar(success, notificationBar.SUCCESS); + notificationBar.show(success, notificationBar.SUCCESS); } else { - notificationBar(failure, notificationBar.ERROR); + notificationBar.show(failure, notificationBar.ERROR); } }); ev.preventDefault();