mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-46514 behat: section should be set before switch-case
This commit is contained in:
parent
0c1bcb63c6
commit
bdcd90b2f3
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user