diff --git a/~dev_rating/application/classes/Controller/Teacher/Map.php b/~dev_rating/application/classes/Controller/Teacher/Map.php index 3274dbb2e80708da7ae2716382ec8c222dba7e03..f655d4495b84c39725b3f6d7928181a4354db291 100644 --- a/~dev_rating/application/classes/Controller/Teacher/Map.php +++ b/~dev_rating/application/classes/Controller/Teacher/Map.php @@ -202,7 +202,8 @@ class Controller_Teacher_Map extends Controller_UserEnvi { private function GetSubjectsList($db) { - $list = $db->GetSubjectList(); + $NameFilter = ''; + $list = $db->GetSubjectList($NameFilter); $SubjectsList = array(); $i = 0; diff --git a/~dev_rating/application/classes/Model/Teacher/Map.php b/~dev_rating/application/classes/Model/Teacher/Map.php index 57cdf0035d8f0aaec5b97dfee380af72e187639a..43be95a3ddb7effe44279b65c0d5793d2b2fa348 100644 --- a/~dev_rating/application/classes/Model/Teacher/Map.php +++ b/~dev_rating/application/classes/Model/Teacher/Map.php @@ -110,9 +110,9 @@ class Model_Teacher_Map extends Model return DB::query(Database::SELECT, $sql)->execute(); } - public function GetSubjectList() + public function GetSubjectList($NameFilter) { - $sql = "CALL `GetSubjects`(); "; + $sql = "CALL `GetSubjects`('$NameFilter'); "; return DB::query(Database::SELECT, $sql)->execute(); }