Skip to content

Commit

Permalink
In Pending Matches, make "New" the leftmost column. (CO-2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Sep 15, 2021
1 parent cceb359 commit e1d0902
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit e1d0902

Please sign in to comment.