Merge branch '5.4' into 5.5

This commit is contained in:
Maxime Rainville 2020-05-26 15:11:46 +12:00
commit 319fa4734c
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,9 @@
language: php
dist: trusty
dist: xenial
services:
- mysql
env:
global:

View File

@ -248,7 +248,6 @@ class RecoverUploadLocationsHelper
if ($this->filesVersioned) {
$draftVersion = Versioned::get_versionnumber_by_stage(File::class, Versioned::DRAFT, $fileId);
$liveVersion = Versioned::get_versionnumber_by_stage(File::class, Versioned::LIVE, $fileId);
;
if ($draftVersion && $draftVersion != $liveVersion) {
$draft = Versioned::get_version(File::class, $fileId, $draftVersion);