fix close year and ignore not active students
This commit is contained in:
@@ -540,7 +540,7 @@ class AdministratorController extends BaseController
|
||||
|
||||
public function teacherSubmissionsReport()
|
||||
{
|
||||
$semester = (string) (getSemester() ?? $this->semester ?? '');
|
||||
$semester = (string) ($this->semester !== '' ? $this->semester : (getSemester() ?? $this->semester ?? ''));
|
||||
$schoolYear = trim((string) ($this->request->getGet('school_year') ?? ''));
|
||||
if ($schoolYear === '') {
|
||||
$schoolYear = $this->currentSchoolYearName((string) ($this->schoolYear ?? ''));
|
||||
@@ -561,7 +561,7 @@ class AdministratorController extends BaseController
|
||||
{
|
||||
$result = service('teacherSubmissionReport')->sendNotifications(
|
||||
(array) $this->request->getPost(),
|
||||
(string) (getSemester() ?? $this->semester ?? ''),
|
||||
(string) ($this->semester !== '' ? $this->semester : (getSemester() ?? '')),
|
||||
(int) (session()->get('user_id') ?? 0)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user