Fixing style errors.

This commit is contained in:
stickler-ci 2020-09-07 15:24:35 +00:00
parent 5992641360
commit 61903a1079
3 changed files with 13 additions and 13 deletions

View File

@ -1912,9 +1912,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
if (!empty($conf->variants->enabled) && ($object->isProduct() || $object->isService())) {
$combination = new ProductCombination($db);
if (($fk_product_parent = $combination->getFkProductParentByFkProductChild($object->id)) > 0) {
$prodstatic = new Product($db);
$prodstatic->fetch($fk_product_parent);
if (($fk_product_parent = $combination->getFkProductParentByFkProductChild($object->id)) > 0) {
$prodstatic = new Product($db);
$prodstatic->fetch($fk_product_parent);
// Parent product
print '<tr><td>'.$langs->trans("ParentProduct").'</td><td colspan="2">';

View File

@ -4482,7 +4482,7 @@ class Product extends CommonObject
global $conf, $langs;
$labelStatus = $labelStatusShort = '';
$langs->load('products');
if (!empty($conf->productbatch->enabled)) { $langs->load("productbatch");
}

View File

@ -118,16 +118,16 @@ class ProductAttribute extends CommonObject
$query = $this->db->query($sql);
if ($query)
{
while ($result = $this->db->fetch_object($query)) {
$tmp = new ProductAttribute($this->db);
$tmp->id = $result->rowid;
$tmp->ref = $result->ref;
$tmp->ref_ext = $result->ref_ext;
$tmp->label = $result->label;
$tmp->rang = $result->rang;
while ($result = $this->db->fetch_object($query)) {
$tmp = new ProductAttribute($this->db);
$tmp->id = $result->rowid;
$tmp->ref = $result->ref;
$tmp->ref_ext = $result->ref_ext;
$tmp->label = $result->label;
$tmp->rang = $result->rang;
$return[] = $tmp;
}
$return[] = $tmp;
}
}
else dol_print_error($this->db);