Skip to content

Commit

Permalink
Merge pull request #3 from COmanage/feature-co2133
Browse files Browse the repository at this point in the history
In Pending Matches, make "New" the leftmost column. (CO-2133)
  • Loading branch information
benno authored Sep 16, 2021
2 parents cceb359 + e1d0902 commit 1701d9a
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 1701d9a

Please sign in to comment.