Skip to content

Commit

Permalink
Merge branch '1.7' into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 26, 2021
2 parents 5ae10ba + 3c006fc commit abf0a9d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 23 deletions.
6 changes: 0 additions & 6 deletions lang/de.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
de:
SilverStripe\VersionedAdmin\ArchiveAdmin:
MENUTITLE: Archiv
SilverStripe\VersionedAdmin\Controllers\CMSPageHistoryViewerController:
MENUTITLE: 'Seite bearbeiten'
SilverStripe\VersionedAdmin\Controllers\HistoryViewerController:
MENUTITLE: Versionsverlauf
SilverStripe\Versioned\ChangeSet:
EMPTY: Leer
ITEMS_CHANGES:
Expand Down
6 changes: 0 additions & 6 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
en:
SilverStripe\VersionedAdmin\ArchiveAdmin:
MENUTITLE: Archives
SilverStripe\VersionedAdmin\Controllers\CMSPageHistoryViewerController:
MENUTITLE: 'Edit Page'
SilverStripe\VersionedAdmin\Controllers\HistoryViewerController:
MENUTITLE: SilverStripe\VersionedAdmin\Controllers\HistoryViewerController
SilverStripe\Versioned\ChangeSet:
EMPTY: Empty
ITEMS_CHANGES:
Expand Down
6 changes: 0 additions & 6 deletions lang/fi.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
fi:
SilverStripe\VersionedAdmin\ArchiveAdmin:
MENUTITLE: Arkistot
SilverStripe\VersionedAdmin\Controllers\CMSPageHistoryViewerController:
MENUTITLE: 'Muokkaa sivua'
SilverStripe\VersionedAdmin\Controllers\HistoryViewerController:
MENUTITLE: SilverStripe\VersionedAdmin\Controllers\HistoryViewerController
SilverStripe\Versioned\ChangeSet:
EMPTY: Tyhjä
ITEMS_CHANGES:
Expand Down
4 changes: 0 additions & 4 deletions lang/pl.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
pl:
SilverStripe\VersionedAdmin\ArchiveAdmin:
MENUTITLE: Archiwum
SilverStripe\VersionedAdmin\Controllers\CMSPageHistoryViewerController:
MENUTITLE: 'Edytuj stronę'
SilverStripe\Versioned\ChangeSet:
EMPTY: Pusty
ITEMS_CHANGES:
Expand Down
4 changes: 3 additions & 1 deletion src/RecursivePublishable.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,9 @@ public function unlinkDisownedRelationship($source, $targetStage, $relationship)
}

// Query the source for the list of items to NOT remove
$ownedSQL = $owner->getComponents($relationship)->sql($ownedParams);
$ownedQuery = $owner->getComponents($relationship);
// remove sort for sub query because some DB drivers don't let you sort sub queries
$ownedSQL = $ownedQuery->dataQuery()->sort(null, null, true)->sql($ownedParams);
$disowned->addWhere([
"\"{$targetTable}\".\"ID\" NOT IN (SELECT \"Source\".\"ID\" FROM ({$ownedSQL}) AS \"Source\")" => $ownedParams
]);
Expand Down

0 comments on commit abf0a9d

Please sign in to comment.