Skip to content
Snippets Groups Projects
Commit 7d4198b5 authored by Anton Bagliy's avatar Anton Bagliy
Browse files

Merge branch 'issue583_logaccount_formexport' into develop

parents 30959ee8 2b89d24f
Branches
No related merge requests found
......@@ -74,6 +74,7 @@ $(document).ready(() => {
const disciplineExtId = disciplineInfo.DisciplineExternalID;
$.get(pathToSfeduAPIAdapter + '/forms', {
accountid: User.accountid,
year: settings.year.toString() + "-" + (settings.year + 1).toString().substr(2, 2),
semester: settings.semesterNum,
plan: planExtId,
......
......@@ -66,6 +66,7 @@ class Controller_Api_V0_FinalReport extends Controller_Handler_Api
try {
// Получаем год и номер семестра из query запроса
$accountid = $this->request->query('accountid');
$year = $this->request->query('year');
$num = $this->request->query('num');
$plan = $this->request->query('plan');
......@@ -103,7 +104,8 @@ class Controller_Api_V0_FinalReport extends Controller_Handler_Api
//$groupID = Model_Group::find($gradenum, $groupnum, $study_form, $faculty);
//TODO: поменять логи, не записывать id дисциплины
if (isset($disciplineID)) {
Model_Logs::logFormExport($this->user->ID, $disciplineID, $groupid, $this->user["SemesterID"]);
//Model_Logs::logFormExport($this->user->ID, $disciplineID, $groupid, $this->user["SemesterID"]);
Model_Logs::logFormExport($accountid, $disciplineID, $groupid, $this->user["SemesterID"]);
} else {
// pass
}
......
......@@ -87,7 +87,8 @@
});
User = {
login: "{{ User.Login }}"
login: "{{ User.Login }}",
accountid: {{ User.ID }},
};
</script>
......
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