Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Code80
vtigercrm
Commits
fd15b164
Commit
fd15b164
authored
4 years ago
by
Akshath
Browse files
Options
Downloads
Patches
Plain Diff
Fix for
#1529
- Bug fix for users searchRecord api
parent
aa687161
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Users/models/Module.php
+1
-1
1 addition, 1 deletion
modules/Users/models/Module.php
with
1 addition
and
1 deletion
modules/Users/models/Module.php
+
1
−
1
View file @
fd15b164
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment