MDL-35321 course sections Enable reset of grouping access

This commit is contained in:
Michael Aherne 2012-09-19 12:56:08 +01:00
parent dafc3b7a85
commit b61670c7a7

View File

@ -79,7 +79,7 @@ if ($mform->is_cancelled()){
if (!empty($CFG->enableavailability)) {
$section->availablefrom = $data->availablefrom;
$section->availableuntil = $data->availableuntil;
if (!empty($data->groupingid)) {
if (isset($data->groupingid)) {
$section->groupingid = $data->groupingid;
}
$section->showavailability = $data->showavailability;