Skip to content

Commit

Permalink
Fix the parent breadcrumb of an External Identity Source Record
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Aug 29, 2024
1 parent 8e283ca commit be76a40
Show file tree
Hide file tree
Showing 7 changed files with 242 additions and 168 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,11 @@ public function search(
while(($data = fgetcsv($handle)) !== false) {
// strtolower, previous behavior was full string only so dupe that

$match = array_search(strtolower($searchAttrs['q']), array_map('strtolower', $data));
$match = collection($data)
->map(fn($value, $key) => strtolower($value ?? ''))
->filter(fn($item, $key) => strtolower($searchAttrs['q']) === $item);

if($match !== false) {
if($match->count() > 0) {
// $match will be the CSV column that matched, but for now we ignore that
// since we just need to know that the row matched somewhere. Note the first
// column is always the SORID.
Expand Down
Loading

0 comments on commit be76a40

Please sign in to comment.