Skip to content

Commit e8ca1c3

Browse files
author
Daniel Thies
committed
VID-1088: Only update player options
1 parent a1be0b7 commit e8ca1c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

options.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@
8585
}
8686
$moduleinstance = ['coursemodule' => $cm->id] + array_intersect_key($defaults, [
8787
'vimeo_url' => true,
88-
]) + (array) $data + array_diff((array) $moduleinstance->to_record(), [
89-
'intro' => true,
90-
'introformat' => true,
91-
]) + $defaults;
92-
videotime_update_instance((object) $moduleinstance, $form);
88+
]) + (array) $data + (array) $moduleinstance->to_record() + $defaults;
89+
foreach (array_keys(core_component::get_plugin_list('videotimeplugin')) as $name) {
90+
component_callback("videotimeplugin_$name", 'update_instance', [(object)$moduleinstance]);
91+
}
92+
$DB->set_field('videotime', 'timemodified', time(), ['id' => $moduleinstance['id']]);
9393
redirect($returnurl);
9494
}
9595

0 commit comments

Comments
 (0)