Skip to content

Commit

Permalink
Merge pull request #436 from thomascoppein/v4
Browse files Browse the repository at this point in the history
Add: where deletedDate is null to all sites query;
  • Loading branch information
Tam authored Apr 12, 2023
2 parents eb5014d + 70668d8 commit 7975db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/RedirectsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function actionIndex ()
);

$sites = ['null' => 'All Sites'];
foreach (Craft::$app->sites->getAllSites() as $site)
foreach (Craft::$app->sites->getAllSites()->where(['dateDeleted' => null]) as $site)
$sites[$site->id] = $site->name;

return $this->renderTemplate('seo/redirects', [
Expand Down

0 comments on commit 7975db8

Please sign in to comment.