Skip to content

Commit d1c4f66

Browse files
bryank-csroot
authored and
root
committed
Add PI searching by name
1 parent 8740f40 commit d1c4f66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: webroot/panel/modal/pi_search.php

+9
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121
break;
2222
}
2323
}
24+
$fn = strtolower($assoc_obj->getOwner()->getFullName());
25+
if (strpos($fn, strtolower($search_query)) !== false) {
26+
if (!in_array($assoc, $out)) {
27+
array_push($out, $assoc);
28+
if (count($out) >= $MAX_COUNT) {
29+
break;
30+
}
31+
}
32+
}
2433
}
2534

2635
foreach ($out as $pi_acct) {

0 commit comments

Comments
 (0)