Merge branch 'MDL-67049' of https://github.com/stronk7/moodle
This commit is contained in:
@@ -386,7 +386,7 @@ class gradingform_rubric_controller extends gradingform_controller {
|
||||
public function get_options() {
|
||||
$options = self::get_default_options();
|
||||
if (!empty($this->definition->options)) {
|
||||
$thisoptions = json_decode($this->definition->options);
|
||||
$thisoptions = json_decode($this->definition->options, true); // Assoc. array is expected.
|
||||
foreach ($thisoptions as $option => $value) {
|
||||
$options[$option] = $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user