mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-20636 Fix codechecker issues in the question behaviours.
This commit is contained in:
parent
9447399c11
commit
1631ceeaec
21 changed files with 147 additions and 86 deletions
|
@ -126,7 +126,8 @@ class qbehaviour_immediatefeedback extends question_behaviour_with_save {
|
|||
|
||||
public function process_save(question_attempt_pending_step $pendingstep) {
|
||||
$status = parent::process_save($pendingstep);
|
||||
if ($status == question_attempt::KEEP && $pendingstep->get_state() == question_state::$complete) {
|
||||
if ($status == question_attempt::KEEP &&
|
||||
$pendingstep->get_state() == question_state::$complete) {
|
||||
$pendingstep->set_state(question_state::$todo);
|
||||
}
|
||||
return $status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue