Skip to content

Commit

Permalink
FIX : syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-gauthier committed Jun 13, 2019
1 parent 1318e26 commit 28218a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion htdocs/core/class/html.formother.class.php
Expand Up @@ -402,7 +402,6 @@ function select_salesrepresentatives($selected, $htmlname, $user, $showstatus=0,
if (! empty($user->admin) && empty($user->entity) && $conf->entity == 1) {
$sql_usr.= " WHERE u.entity IS NOT NULL"; // Show all users
} else {
$sql_usr.= ",
$sql_usr.= " WHERE EXISTS (SELECT ug.fk_user FROM ".MAIN_DB_PREFIX."usergroup_user as ug WHERE u.rowid = ug.fk_user AND ug.entity IN (".getEntity('user')."))";
$sql_usr.= " OR u.entity = 0"; // Show always superadmin
}
Expand Down

0 comments on commit 28218a0

Please sign in to comment.