Skip to content
Snippets Groups Projects

Fix for #1529 - Bug fix for users searchRecord api

Merged Akshath requested to merge akshath/vtigercrm:fix_1529_1 into 7.4.0
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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) {
Loading