backups: default is_successful to false (#3522)
* backups: default is_successful to false * backups: properly query backups
This commit is contained in:
parent
b19a1640f0
commit
970f281859
8 changed files with 54 additions and 10 deletions
|
@ -225,7 +225,7 @@ class BackupController extends ClientApiController
|
|||
throw new BadRequestHttpException('This server is not currently in a state that allows for a backup to be restored.');
|
||||
}
|
||||
|
||||
if (!$backup->is_successful && !$backup->completed_at) {
|
||||
if (!$backup->is_successful && is_null($backup->completed_at)) {
|
||||
throw new BadRequestHttpException('This backup cannot be restored at this time: not completed or failed.');
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue