aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/statusgroups.php
diff options
context:
space:
mode:
authorRasmus Fuhse <fuhse@data-quest.de>2021-11-04 10:07:18 +0100
committerDavid Siegfried <david.siegfried@uni-vechta.de>2021-11-04 09:09:43 +0000
commitad2256c7d00a28c5b5022c21a887c8eb83469a61 (patch)
treea6b6ea5d9759555b51b376e7323f702bb05fcd96 /app/controllers/course/statusgroups.php
parent96b2532e70ff4e72a6f49f8521e89d380d4f913b (diff)
re #391
Diffstat (limited to 'app/controllers/course/statusgroups.php')
-rw-r--r--app/controllers/course/statusgroups.php5
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')
);