From 163a31afa2ebbf346642c5c8df15ede0832413f7 Mon Sep 17 00:00:00 2001
From: xamgore <xamgore@ya.ru>
Date: Sat, 20 Jun 2015 22:45:15 +0300
Subject: [PATCH] Fix of field name (there are no lower case fields)

---
 ~dev_rating/media/js/dean_office/dean_office.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/~dev_rating/media/js/dean_office/dean_office.js b/~dev_rating/media/js/dean_office/dean_office.js
index bab3f791c..b9a6a8412 100644
--- a/~dev_rating/media/js/dean_office/dean_office.js
+++ b/~dev_rating/media/js/dean_office/dean_office.js
@@ -85,8 +85,8 @@ $(function() {
                         for (i in d.data) {
                             discipline = d.data[i];
                             if (discipline.type !== 'exam')
-                                continue;  // todo: be careful with .type & .ID fields
-                            jSelectDiscipline.append("<option value='" + discipline.ID + "'>" + discipline.subjectName + "</option>");
+                                continue;
+                            jSelectDiscipline.append("<option value='" + discipline.ID + "'>" + discipline.SubjectName + "</option>");
                         }
                         if (i > 0)
                             jSelectDiscipline.removeAttr("disabled");
-- 
GitLab