mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
updating old choices didn't work.
This commit is contained in:
parent
d84c7b3e09
commit
f6eb109943
@ -111,7 +111,7 @@ function choice_update_instance($choice) {
|
||||
if (strstr($name, "oldoption")) { // Old option
|
||||
if ($value) {
|
||||
$option = NULL;
|
||||
$option->id = substr($name, 10); // Get the ID of the answer that needs to be updated.
|
||||
$option->id = substr($name, 9); // Get the ID of the answer that needs to be updated.
|
||||
$option->text = $value;
|
||||
$option->choiceid = $choice->id;
|
||||
$option->timemodified = time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user