Skip to content
Snippets Groups Projects
Commit 050883bf authored by RomanSteinberg's avatar RomanSteinberg
Browse files

Fix missed facultyID in office students upload

parent 0dbe9931
No related merge requests found
......@@ -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([
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment