Fixed: Now downloading documents is possible for ALL STGLs of the concerning STG

Before it was possible only for first in array. Now sending to all.

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
cris-technikum
2021-09-23 12:47:05 +02:00
parent bd90876277
commit 72868f4207
@@ -285,11 +285,14 @@ class approveAnrechnungUebersicht extends Auth_Controller
// Get STGL
$result = $this->StudiengangModel->getLeitung($result->studiengang_kz);
if($result = getData($result)[0])
if (hasData($result))
{
if ($result->uid == $this->_uid)
foreach (getData($result) as $stgl)
{
return;
if ($stgl->uid == $this->_uid)
{
return;
}
}
}