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.
This commit is contained in:
Luc Charland
2012-10-23 16:11:45 -04:00
parent ee712d2c11
commit 8a9336c599

View File

@@ -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);