From e1d090265fa8d8351a28dc054e1233299706bfe0 Mon Sep 17 00:00:00 2001 From: arlen Date: Wed, 15 Sep 2021 15:03:48 -0400 Subject: [PATCH] In Pending Matches, make "New" the leftmost column. (CO-2133) --- app/src/Controller/MatchgridsController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/Controller/MatchgridsController.php b/app/src/Controller/MatchgridsController.php index be9faadab..5577c4582 100644 --- a/app/src/Controller/MatchgridsController.php +++ b/app/src/Controller/MatchgridsController.php @@ -243,14 +243,14 @@ public function reconcile(string $id) { $results = $MatchService->searchReferenceId($sor, $sorid, $AttributeManager); + // Insert the original request as "new" + $candidates[] = $origReq[$rowId]; + // Count could be 0 if we failed to match any rules at all (canonical or potential) if($results->count() > 0) { - $candidates = $results->getRawResults(); + $candidates = array_merge($candidates,$results->getRawResults()); } - // Insert the original request as "new" - $candidates[] = $origReq[$rowId]; - $this->set('vv_candidates', $candidates); // Also set the original request separately to make it easier for the view $this->set('vv_request', $origReq[$rowId]);