diff --git a/~dev_rating/application/classes/Controller/Office/Students.php b/~dev_rating/application/classes/Controller/Office/Students.php index a9f97c765ec7d643d82eeb361346334a53260c91..2c1c45c34843cefee801c7cc216ad4a5e489948a 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([