mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
fix: unknown column error on generated product sql
This commit is contained in:
@@ -2817,7 +2817,7 @@ class Product extends CommonObject
|
||||
$sql .= " FROM ".$this->db->prefix()."mrp_mo as c";
|
||||
$sql .= " INNER JOIN ".$this->db->prefix()."mrp_production as mp ON mp.fk_mo=c.rowid";
|
||||
if (empty($user->rights->societe->client->voir) && !$socid) {
|
||||
$sql .= "INNER JOIN ".$this->db->prefix()."societe_commerciaux as sc ON sc.fk_soc=c.fk_soc AND sc.fk_user = ".((int) $user->id);
|
||||
$sql .= " INNER JOIN ".$this->db->prefix()."societe_commerciaux as sc ON sc.fk_soc=c.fk_soc AND sc.fk_user = ".((int) $user->id);
|
||||
}
|
||||
$sql .= " WHERE ";
|
||||
$sql .= " c.entity IN (".getEntity('mo').")";
|
||||
|
||||
Reference in New Issue
Block a user