Skip to content

Commit

Permalink
MDL-34155 use course visibility default when creator does not have mo…
Browse files Browse the repository at this point in the history
…odle/course:visibility
  • Loading branch information
skodak authored and Sam Hemelryk committed Jul 10, 2012
1 parent 7232e79 commit b1eae8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/edit_form.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function definition() {
if (!empty($course->id)) { if (!empty($course->id)) {
$mform->setConstant('visible', $course->visible); $mform->setConstant('visible', $course->visible);
} else { } else {
$mform->setConstant('visible', $category->visible); $mform->setConstant('visible', $courseconfig->visible);
} }
} }


Expand Down

0 comments on commit b1eae8a

Please sign in to comment.