Permalink
Browse files

MDL-34155 use course visibility default when creator does not have mo…

…odle/course:visibility
  • Loading branch information...
1 parent 3ca82ed commit eb88700a563604c8c15354e5a07df6f5af0abc31 @skodak skodak committed with Sam Hemelryk Jul 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/edit_form.php
View
@@ -229,7 +229,7 @@ function definition() {
if (!empty($course->id)) {
$mform->setConstant('visible', $course->visible);
} else {
- $mform->setConstant('visible', $category->visible);
+ $mform->setConstant('visible', $courseconfig->visible);
}
}

0 comments on commit eb88700

Please sign in to comment.