Clean travis return

This commit is contained in:
atm-lena 2022-07-12 12:23:23 +02:00
parent c7d4abb6a1
commit b5d2e0f4bc

View File

@ -424,7 +424,7 @@ class BOM extends CommonObject
$sql .= " FROM ".$this->db->prefix().$objectline->table_element." as l";
$sql .= " LEFT JOIN ".$this->db->prefix()."product as p ON p.rowid = l.fk_product";
$sql .= " WHERE l.fk_".$this->db->escape($this->element)." = ".((int) $this->id);
$sql .= " AND p.fk_product_type = ". $typeproduct;
$sql .= " AND p.fk_product_type = ". ((int) $typeproduct);
if (isset($objectline->fields['position'])) {
$sql .= $this->db->order('position', 'ASC');
}