Skip to content

Commit

Permalink
Merge pull request #12 from raise-digital/extension-fix
Browse files Browse the repository at this point in the history
Corrected relation names in redirect extension
  • Loading branch information
wilr authored Feb 7, 2024
2 parents 6cd61af + acb8cd6 commit 0aca712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RedirectExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class RedirectExtension extends DataExtension
public function onAfterDelete()
{
$redirects = RedirectUrl::get()->filterAny([
'FromID' => $this->owner->ID,
'ToID' => $this->owner->ID
'FromRelationID' => $this->owner->ID,
'ToRelationID' => $this->owner->ID
]);

foreach ($redirects as $redirect) {
Expand Down

0 comments on commit 0aca712

Please sign in to comment.