From 9712ba05a636302c13dbfac95ed2f4ddd609d3c1 Mon Sep 17 00:00:00 2001
From: Benn Oshrin <boshrin@users.noreply.github.com>
Date: Wed, 6 Dec 2023 14:40:05 -0500
Subject: [PATCH] Fix retrieval of matchgrid configuration (CO-2728)

---
 app/src/Lib/Match/MatchService.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/src/Lib/Match/MatchService.php b/app/src/Lib/Match/MatchService.php
index 5928c32f..cf33fb5e 100644
--- a/app/src/Lib/Match/MatchService.php
+++ b/app/src/Lib/Match/MatchService.php
@@ -1012,7 +1012,10 @@ public function setConfig(int $matchgridId) {
                                             ],
                                             'MatchgridSettings',
                                             'PotentialRules' => [
-                                              'RuleAttributes' => ['Attributes' => 'AttributeGroups'],
+                                              'RuleAttributes' => [
+                                                'Attributes' => 'AttributeGroups',
+                                                'CrosscheckAttributes' => 'AttributeGroups'
+                                              ],
                                               'sort' => ['PotentialRules.ordr' => 'ASC']
                                             ]])
                                  ->firstOrFail();