Skip to content
Snippets Groups Projects
Commit 84e91382 authored by Anton Bagliy's avatar Anton Bagliy Committed by Роман Штейнберг
Browse files

FIX: unique discipline IDs in final report export view #284

parent bcfa4509
Branches
Tags
No related merge requests found
......@@ -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");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment