From c22765a1d1fe251180da6c85814548f0b1f8a858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien?= Date: Thu, 28 Jul 2022 17:52:17 +0200 Subject: [PATCH] error "restart selected job" when agent is pinned when an agent is pinned and the list is not refreshed manually or automatically, the values of input check_restart are not updated. this element takes the value of the following element and shifts all values. There is certainly a more efficient solution than this. --- js/taskjobs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/taskjobs.js b/js/taskjobs.js index fc0eca1329..7e453f775d 100644 --- a/js/taskjobs.js +++ b/js/taskjobs.js @@ -189,9 +189,10 @@ function pin_agent(args) { //chart.pinned_agents = {}; chart.pinned_agents[agent_id] = chart.agents.toObject()[agent_id]; chart.pinned_agents[agent_id].logs = {}; - taskjobs.refresh_pinned_agents(chart_id); + //taskjobs.refresh_pinned_agents(chart_id); //agents_dispatch.view(chart_id); // taskjobs.update_agents_view(chart_id); + taskjobs.queue_refresh_logs( taskjobs.ajax_url, taskjobs.task_id ); } function add_runlogs(extra) {