Merge pull request #14735 from atm-florianm/10.0_FIX_prelevement_top5_multicompany
FIX: missing entity check
This commit is contained in:
commit
e1d117b52d
@ -179,6 +179,7 @@ print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||
$limit=5;
|
||||
$sql = "SELECT p.rowid, p.ref, p.amount, p.datec, p.statut";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."prelevement_bons as p";
|
||||
$sql.= " WHERE entity IN (" . getEntity('prelevement') . ")";
|
||||
$sql.= " ORDER BY datec DESC";
|
||||
$sql.= $db->plimit($limit);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user