From 045de11d42107ce451ed217f129c9ba50a0effeb Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.Silence@gmail.com> Date: Mon, 25 Aug 2014 00:39:18 +0400 Subject: [PATCH] fix #8 --- db/StoredProcedures.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/StoredProcedures.sql b/db/StoredProcedures.sql index aff29e6b9..a859200b7 100644 --- a/db/StoredProcedures.sql +++ b/db/StoredProcedures.sql @@ -1014,7 +1014,7 @@ BEGIN LEFT JOIN `disciplines_students` ON DisciplineID = disciplines_students.DisciplineID AND students.ID = disciplines_students.StudentID WHERE disciplines_students.Type = 'attach' OR - ( disciplines_students.Type != 'detach' AND + ( ( disciplines_students.Type IS NULL OR disciplines_students.Type != 'detach' ) AND disciplines_groups.StudyGroupID IS NOT NULL ); ELSE -- GitLab