Fix useless left join
This commit is contained in:
parent
5b49021bb4
commit
f145db3222
@ -1376,7 +1376,6 @@ class ActionComm extends CommonObject
|
||||
if (empty($user->rights->agenda->allactions->read)) {
|
||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."actioncomm_resources AS ar ON a.id = ar.fk_actioncomm AND ar.element_type ='user' AND ar.fk_element = ".((int) $user->id);
|
||||
}
|
||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid";
|
||||
$sql .= " WHERE 1 = 1";
|
||||
if (empty($load_state_board)) {
|
||||
$sql .= " AND a.percent >= 0 AND a.percent < 100";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user