From 93205d42c7f76e792681fdddb3925efae8cb2457 Mon Sep 17 00:00:00 2001 From: Anton Shalimov <solidovic@ynadex.ru> Date: Wed, 2 Sep 2015 16:43:14 +0300 Subject: [PATCH] fix Bind Student --- ~dev_rating/application/classes/Controller/Handler/Map.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/~dev_rating/application/classes/Controller/Handler/Map.php b/~dev_rating/application/classes/Controller/Handler/Map.php index 39458af8c..0ee897227 100644 --- a/~dev_rating/application/classes/Controller/Handler/Map.php +++ b/~dev_rating/application/classes/Controller/Handler/Map.php @@ -172,7 +172,7 @@ class Controller_Handler_Map extends Controller_Handler $discipline = Model_Discipline::load($_POST['DisciplineID']); $map = Model_Map::of($discipline); - $failed = $map->BindStudent($this->user->TeacherID, $map['StudentID']); + $failed = $map->BindStudent($this->user->TeacherID, $_POST['StudentID']); $response['success'] = !$failed; $this->response->body(json_encode($response)); -- GitLab