mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user