From 9578255f5a2f88b27fe518e43beef5fe30d77487 Mon Sep 17 00:00:00 2001
From: xamgore <xamgore@ya.ru>
Date: Fri, 26 Jun 2015 14:34:28 +0300
Subject: [PATCH] Removed splitting of names

---
 ~dev_rating/application/classes/Model/Student.php | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/~dev_rating/application/classes/Model/Student.php b/~dev_rating/application/classes/Model/Student.php
index 43fc83de1..e794ff46b 100644
--- a/~dev_rating/application/classes/Model/Student.php
+++ b/~dev_rating/application/classes/Model/Student.php
@@ -51,13 +51,9 @@ class Model_Student extends Model_Container
             ->execute();
 
         $list = [];
-        // TODO: use TeacherID. Split fullName?
         foreach ($result as $row) {
-            $names =& $list[$row['DisciplineID']];
-            $fullName = $row['LastName'] .' '. $row['FirstName'] .' '. $row['SecondName'];
-            if (!$names)
-                $names = [];
-            array_push($names, $fullName);
+            $id = $row['DisciplineID'];
+            $list[$id][] = $row;
         }
         return $list;
     }
-- 
GitLab