nvm #2
Annotations
7 warnings
ci (main, 8.3, mysqli):
moodle/availability/condition/relativedate/classes/condition.php#L411
Escaped Mutant for Mutator "LogicalNot":
@@ @@
$rec = \restore_dbops::get_backup_ids_record($restoreid, 'course_module', $this->relativecoursemodule);
if (!($rec && $rec->newitemid)) {
// If we are on the same course (e.g. duplicate) then we can just use the existing one.
- if (!get_coursemodule_from_id('', $this->relativecoursemodule, $courseid)) {
+ if (get_coursemodule_from_id('', $this->relativecoursemodule, $courseid)) {
$this->relativecoursemodule = 0;
$logger->process("Restored item ({$name} has availability condition on module that was not restored", \backup::LOG_WARNING);
return false;
|
ci (main, 8.3, mysqli):
moodle/availability/condition/relativedate/classes/condition.php#L412
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
if (!($rec && $rec->newitemid)) {
// If we are on the same course (e.g. duplicate) then we can just use the existing one.
if (!get_coursemodule_from_id('', $this->relativecoursemodule, $courseid)) {
- $this->relativecoursemodule = 0;
+ $this->relativecoursemodule = -1;
$logger->process("Restored item ({$name} has availability condition on module that was not restored", \backup::LOG_WARNING);
return false;
}
|
ci (main, 8.3, mysqli):
moodle/availability/condition/relativedate/classes/condition.php#L413
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
// If we are on the same course (e.g. duplicate) then we can just use the existing one.
if (!get_coursemodule_from_id('', $this->relativecoursemodule, $courseid)) {
$this->relativecoursemodule = 0;
- $logger->process("Restored item ({$name} has availability condition on module that was not restored", \backup::LOG_WARNING);
+
return false;
}
} else {
|
ci (main, 8.3, mysqli):
moodle/availability/condition/relativedate/classes/condition.php#L417
Escaped Mutant for Mutator "FalseValue":
@@ @@
if (!get_coursemodule_from_id('', $this->relativecoursemodule, $courseid)) {
$this->relativecoursemodule = 0;
$logger->process("Restored item ({$name} has availability condition on module that was not restored", \backup::LOG_WARNING);
- return false;
+ return true;
}
} else {
$this->relativecoursemodule = $rec->newitemid;
|
ci (main, 8.3, mysqli):
moodle/availability/condition/relativedate/classes/condition.php#L422
Escaped Mutant for Mutator "TrueValue":
@@ @@
} else {
$this->relativecoursemodule = $rec->newitemid;
}
- return true;
+ return false;
}
}
|
ci (main, 8.3, mysqli):
moodle/availability/condition/relativedate/classes/frontend.php#L53
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
protected function get_javascript_init_params($course, ?cm_info $cm = null, ?section_info $section = null)
{
global $DB;
- $optionsdwm = self::convert_associative_array_for_js(condition::options_dwm(2), 'field', 'display');
+ $optionsdwm = self::convert_associative_array_for_js(condition::options_dwm(3), 'field', 'display');
$optionsstart = [['field' => 1, 'display' => condition::options_start(1)], ['field' => 6, 'display' => condition::options_start(6)]];
if ($course->enddate != 0) {
$optionsstart[] = ['field' => 5, 'display' => condition::options_start(5)];
|
ci (main, 8.3, mysqli):
moodle/availability/condition/relativedate/classes/frontend.php#L79
Escaped Mutant for Mutator "Continue_":
@@ @@
$s['coursemodules'] = [];
foreach ($cursection as $cmid) {
if ($cm && $cm->id === $cmid) {
- continue;
+ break;
}
$module = $modinfo->get_cm($cmid);
// Get only course modules which are not being deleted.
|