MDL-84979 course: Correct course format update parameters
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user