Merge branch 'wip-mdl-46514-m30' of https://github.com/rajeshtaneja/moodle into MOODLE_30_STABLE

This commit is contained in:
Dan Poltawski
2016-08-23 08:59:40 +01:00
+1 -1
View File
@@ -76,10 +76,10 @@ switch($requestmethod) {
switch ($class) {
case 'section':
$table = 'quiz_sections';
$section = $structure->get_section_by_id($id);
switch ($field) {
case 'getsectiontitle':
require_capability('mod/quiz:manage', $modcontext);
$section = $structure->get_section_by_id($id);
echo json_encode(array('instancesection' => $section->heading));
break;
case 'updatesectiontitle':