MDL-84979 course: Correct course format update parameters

This commit is contained in:
James C
2025-03-25 19:17:35 +13:00
parent 8f89677192
commit 0a6414f91f
+4 -4
View File
@@ -966,11 +966,11 @@ abstract class base {
}
}
if ($targetsectionid) {
$params['sectionid'] = $targetsectionid;
if (isset($targetsectionid)) {
$params['targetsectionid'] = $targetsectionid;
}
if ($targetcmid) {
$params['cmid'] = $targetcmid;
if (isset($targetcmid)) {
$params['targetcmid'] = $targetcmid;
}
if ($returnurl) {
$params['returnurl'] = $returnurl->out_as_local_url();