bug

parent cd2160c5
......@@ -189,7 +189,7 @@ class DirectorView extends ControllerBase
//'relationtostudent' => $relationtostudent_decoded,
//'birthdate' => substr($epalStudent->birthdate->value, 8, 10) . '/' . substr($epalStudent->birthdate->value, 6, 8) . '/' . substr($epalStudent->birthdate->value, 0, 4),
'birthdate' => date("d-m-Y", strtotime($epalStudent->birthdate)),
'checkstatus' => $checkstudentstatus -> directorconfirm ,
'checkstatus' => $checkstudentstatus -> directorconfirm -> value ,
'lock_delete' => $lock_delete,
'created' => date('d/m/Y H:i', $epalStudent -> created ),
......
......@@ -2027,7 +2027,7 @@ public function getStudentPerSchoolGel(Request $request, $classId)
//$this->logger->warning($gelId."kvdikos sxoleiou".$classId);
$schools = $this->entityTypeManager->getStorage('gel_school')->loadByProperties(array('id' => $gelId));
$school = reset($schools);
$operation_shift = $schools->operation_shift->value;
$operation_shift = $school->operation_shift->value;
if ( $operation_shift != 'ΗΜΕΡΗΣΙΟ')
{
......@@ -2092,7 +2092,7 @@ public function getStudentPerSchoolGel(Request $request, $classId)
$existingstudents = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
}
//$this->logger->warning($sCon."existingstudents");
$this->logger->warning($sCon."existingstudents");
}
......
Markdown is supported
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