Merge pull request #32838 from hregis/fix_20_dolistore
FIX if $force_entity = 0 ($force_entity != 'default') = false
This commit is contained in:
commit
97646f0000
1 changed files with 1 additions and 1 deletions
|
|
@ -2195,7 +2195,7 @@ class Form
|
|||
$sql .= " LEFT JOIN " . $this->db->prefix() . "entity as e ON e.rowid = u.entity";
|
||||
}
|
||||
// Condition here should be the same than into societe->getSalesRepresentatives().
|
||||
if ($userissuperadminentityone && $force_entity != 'default') {
|
||||
if ($userissuperadminentityone && $force_entity !== 'default') {
|
||||
if (!empty($force_entity)) {
|
||||
$sql .= " WHERE u.entity IN (0, " . $this->db->sanitize($force_entity) . ")";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue