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

FIX: specialist grade in teacher index and bill

parent 87536e43
Branches hotfix2.3.6
No related merge requests found
......@@ -125,7 +125,13 @@ let getGroupLoader = ($select, genParams) => {
* @param {string} data.Degree
*/
let getGradeOption = (data) => {
let title = (data.Degree == 'master') ? 'Магистратура' : 'Курс';
let title = 'Курс';
if (data.Degree == 'master') {
title = 'Магистратура';
}
if (data.Degree == 'specialist') {
title = 'Специалитет';
}
let str = `${title} ${data.Num}`;
return `<option value='${data.ID}'>${str}</option>`;
};
......
......@@ -44,7 +44,10 @@ class Controller_Teacher_Index extends Controller_Environment_Teacher
$groupDesc = $dis->GroupNum . ' гр. бакалавриат' ;
}
if ($dis_group['Degree'] === 'master') {
$groupDesc = $dis->GroupNum . 'гр. магистратура ';
$groupDesc = $dis->GroupNum . ' гр. магистратура ';
}
if ($dis_group['Degree'] === 'specialist') {
$groupDesc = $dis->GroupNum . ' гр. специалитет ';
}
if ($dis_group['FormID'] === 'очно-заочная') {
......
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