From 050883bf558d2ebc3f6d8605aaef63c96a36abb2 Mon Sep 17 00:00:00 2001 From: RomanSteinberg <romanofficial@yandex.ru> Date: Fri, 4 Sep 2015 12:07:24 +0300 Subject: [PATCH] Fix missed facultyID in office students upload --- ~dev_rating/application/classes/Controller/Office/Students.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/~dev_rating/application/classes/Controller/Office/Students.php b/~dev_rating/application/classes/Controller/Office/Students.php index a9f97c765..2c1c45c34 100644 --- a/~dev_rating/application/classes/Controller/Office/Students.php +++ b/~dev_rating/application/classes/Controller/Office/Students.php @@ -33,8 +33,9 @@ class Controller_Office_Students extends Controller_Environment_Office $errors = []; if (!empty($_FILES['students']) && $this->request->method() == 'POST') { + $facultyID = User::instance()->Faculty->ID; $file = $_FILES['students']['tmp_name']; - $errors = FileParser::uploadStudents($file, $_POST['facultyID']); + $errors = FileParser::uploadStudents($file, $facultyID); } $this->twig->set([ -- GitLab