From 8680007fb6e3ebc6be8358c5efc6fd86533a5251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Ko=C5=84?= Date: Tue, 10 Oct 2023 08:45:07 +0200 Subject: [PATCH] Improved getting active relations --- app/Relation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Relation.php b/app/Relation.php index d8acd26ae32..b8eb639157e 100644 --- a/app/Relation.php +++ b/app/Relation.php @@ -45,6 +45,7 @@ public static function getByModule(string $moduleName, ?bool $onlyActive = false $row['favorites'] = (int) $row['favorites']; $row['creator_detail'] = (int) $row['creator_detail']; $row['relation_comment'] = (int) $row['relation_comment']; + $row['related_module_presence'] = (int) $row['related_module_presence']; $allRelations[$row['relation_id']] = $row; } Cache::save('App\Relation::getByModule', $moduleName, $allRelations, Cache::LONG);