I wrote a plugin that works completely fine (Moodle 2.9) except for when I want to update an instance.
All data gets loaded fine except for the atto.
The data is available (var_dumped $this->current inside definition method).
Autosoave is on, but the $PAGE->url is unique (counting the get identifier).
the useful results for the var_dump:
["introeditor"]=>
array(3) {
["text"]=>
string(20) "jajaja wat een gelul"
["format"]=>
string(1) "1"
["itemid"]=>
int(917785644)
}
}
["intro"]=>
string(20) "jajaja wat een gelul"
["introformat"]=>
string(1) "1"
I'll include the mod_form file as attachment.
General developer forum
Atto empty when updating.
This discussion has been locked so you can no longer reply to it.