Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Backup
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
thanks to Sam Marshall for details regarding this bug.
backup_module in backuplib.php these lines:
foreach ($preferences->mods[$module]->instances as
$instance => $object) {
if (!empty($object->backup)) {
$status =
$onemodbackup($bf,$preferences,$instance);
}
}
overwrite the $status flag and doesn't notify about anything failing - should change to something like this (untested!)
foreach ($preferences->mods[$module]->instances as $instance => $object) {
if (!empty($object->backup)) {
$statusm = $onemodbackup($bf,$preferences,$instance);
if (!$statusm) {
notify('backup of:'.$module.'-'.$instance.' failed.');
$status = false;
}
}
}
--should also check to see if backup is silent and only notify when not silent, and should log an entry to backup_log
![]()
Dan
Issue Links
| This issue duplicates: | ||||
| MDL-12037 | Backup system ignores errors - we'd like it to report them |
|
|
|
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions