MDL-77090 questions: regrade of interactive attempts lose tries count
The behaviour-specific data was getting corrupted when the regrade recreated the first step, because $oldstep->get_behaviour_data() was stripping off the leading '-' characters from the names, and they were not being added back.
This commit is contained in:
@@ -362,7 +362,9 @@ class question_attempt_step {
|
||||
|
||||
/**
|
||||
* Get all the behaviour variables.
|
||||
* @param array name => value pairs.
|
||||
*
|
||||
* @return array name => value pairs. NOTE! the name has the leading - stripped off.
|
||||
* (If you don't understand the note, read the comment at the top of this class :-))
|
||||
*/
|
||||
public function get_behaviour_data() {
|
||||
$result = array();
|
||||
|
||||
Reference in New Issue
Block a user