From 84e91382618e9d90b04251a9863b333b3f154911 Mon Sep 17 00:00:00 2001 From: Anton Bagliy <taccessviolation@gmail.com> Date: Sat, 26 Jan 2019 18:46:11 +0300 Subject: [PATCH] FIX: unique discipline IDs in final report export view #284 --- media/js/office/export.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/js/office/export.js b/media/js/office/export.js index 29be0f915..ac81679f8 100644 --- a/media/js/office/export.js +++ b/media/js/office/export.js @@ -221,8 +221,8 @@ $(document).ready(() => { jQuery.each(disciplines, function (i, val) { loadedDisciplines[i] = val; $('#groupTree').jstree().create_node(data.selected, { - "id": "discipline_" + val.ID, - // TODO: refactor + "id": "discipline_" + val.ID + "_group_" + groupID , + // TODO: refactor: "type": val.lastExportDate ? (val.lastExportError ? "discipline_broken": (val.isOutdated ? "discipline_outdated": "discipline_exported")) : "discipline_new", "text": val.lastExportDate ? val.SubjectName + ", последняя дата: " + val.lastExportDate : val.SubjectName, }, "last"); -- GitLab