Skip to content

In Pending Matches, make "New" the leftmost column. (CO-2133) #3

Merged
merged 1 commit into from
Sep 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/src/Controller/MatchgridsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down