From 8a9336c599fc0d1c3047f42e3ec44736641f522b Mon Sep 17 00:00:00 2001 From: Luc Charland Date: Tue, 23 Oct 2012 16:11:45 -0400 Subject: [PATCH] fixed bug #2062 priority shows prio_null When looking at a priority from a calendar where you don't have enough rights. In this case simply do not show anything in the field. --- UI/WebServerResources/SchedulerUI.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index d9b04cba7..4798e40c2 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -1075,7 +1075,12 @@ function tasksListCallback(http) { cell = createElement("td"); row.appendChild(cell); - cell.update(_("prio_" + data[i][11])); // Priority + if (data[i][11] != null) { + cell.update(_("prio_" + data[i][11])); // Priority + } + else { + cell.update(""); // Priority + } cell = createElement("td"); row.appendChild(cell);