diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2021-11-04 10:07:18 +0100 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2021-11-04 09:09:43 +0000 |
| commit | ad2256c7d00a28c5b5022c21a887c8eb83469a61 (patch) | |
| tree | a6b6ea5d9759555b51b376e7323f702bb05fcd96 /app/controllers/course/statusgroups.php | |
| parent | 96b2532e70ff4e72a6f49f8521e89d380d4f913b (diff) | |
re #391
Diffstat (limited to 'app/controllers/course/statusgroups.php')
| -rw-r--r-- | app/controllers/course/statusgroups.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/course/statusgroups.php b/app/controllers/course/statusgroups.php index 79c595b..273ac11 100644 --- a/app/controllers/course/statusgroups.php +++ b/app/controllers/course/statusgroups.php @@ -518,7 +518,8 @@ class Course_StatusgroupsController extends AuthenticatedController $endtime = 0; } } - $position = Statusgruppen::find($group_id)->position; + $statusgruppe = Statusgruppen::find($group_id); + $position = $statusgruppe->position; $group = Statusgruppen::createOrUpdate( $group_id, Request::get('name'), @@ -527,7 +528,7 @@ class Course_StatusgroupsController extends AuthenticatedController Request::int('selfassign', 0) + Request::int('exclusive', 0), strtotime(Request::get('selfassign_start', 'now')), Request::get('selfassign_end') ? strtotime(Request::get('selfassign_end')) : 0, - Request::int('makefolder', 0), + Request::int('makefolder', 0) || $statusgruppe->hasFolder(), Request::getArray('dates') ); |
