Merge branch 'MDL-82973-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE
This commit is contained in:
@@ -572,7 +572,8 @@ class step {
|
||||
* @return $this
|
||||
*/
|
||||
public function persist($force = false) {
|
||||
global $DB;
|
||||
global $CFG, $DB;
|
||||
require_once("{$CFG->libdir}/filelib.php");
|
||||
|
||||
if (!$this->dirty && !$force) {
|
||||
return $this;
|
||||
@@ -729,6 +730,9 @@ class step {
|
||||
* @return object
|
||||
*/
|
||||
public function prepare_data_for_form() {
|
||||
global $CFG;
|
||||
require_once("{$CFG->libdir}/filelib.php");
|
||||
|
||||
$data = $this->to_record();
|
||||
foreach (self::get_config_keys() as $key) {
|
||||
$data->$key = $this->get_config($key, configuration::get_step_default_value($key));
|
||||
|
||||
Reference in New Issue
Block a user