Skip to content
Snippets Groups Projects
Commit fd15b164 authored by Akshath's avatar Akshath
Browse files

Fix for #1529 - Bug fix for users searchRecord api

parent aa687161
No related branches found
No related tags found
3 merge requests!802Field Mapping ID fix,!793#1533 issue on date formate,!763Fix for #1529 - Bug fix for users searchRecord api
......@@ -49,7 +49,7 @@ class Users_Module_Model extends Vtiger_Module_Model {
$query = 'SELECT * FROM vtiger_users WHERE userlabel LIKE ? AND status = ?';
$currentUser = Users_Record_Model::getCurrentUserModel();
$allSubordinates = $currentUser->getAllSubordinatesByReportsToField($currentUser->getId());
$params = array("%$searchValue%", "%$searchValue%", 'Active');
$params = array("%$searchValue%", 'Active');
// do not allow the subordinates
if(count($allSubordinates) > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment