From 55080a267a80f5abfb8cfaa1c0f74fe45a543219 Mon Sep 17 00:00:00 2001 From: Brian Cassidy Date: Thu, 16 Nov 2023 09:47:17 -0400 Subject: [PATCH] ignore local records for permalink display (BugzID: 19931) --- custom/modules/eresources/src/Controller/RecordController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/custom/modules/eresources/src/Controller/RecordController.php b/custom/modules/eresources/src/Controller/RecordController.php index 04671dc7..53effe82 100644 --- a/custom/modules/eresources/src/Controller/RecordController.php +++ b/custom/modules/eresources/src/Controller/RecordController.php @@ -25,6 +25,7 @@ public function permalink($id) { $indexQuery = $index->query(); $indexQuery->addCondition('id', $id); $indexQuery->addCondition('status', TRUE); + $indexQuery->addCondition('is_local', FALSE); $indexQuery->range(0, 1); $result = $indexQuery->execute();