fix travis

This commit is contained in:
Florian HENRY 2020-10-14 11:20:27 +02:00
parent 08379cbfc6
commit 14a3e30270
3 changed files with 3 additions and 3 deletions

View File

@ -2387,7 +2387,7 @@ class Product extends CommonObject
$sql .= " c.entity IN (".getEntity('mo').")";
$sql .= " AND mp.fk_product =".$this->id;
$sql .= " AND mp.role ='".$role."'";
$sql .= " AND mp.role ='".$this->db->escape($role)."'";
if ($socid > 0) {
$sql .= " AND c.fk_soc = ".$socid;
}

View File

@ -83,7 +83,7 @@ if ($id > 0 || !empty($ref))
$head = product_prepare_head($product);
$titre = $langs->trans("CardProduct".$product->type);
$picto = ($product->type == Product::TYPE_SERVICE ? 'service' : 'product');
dol_fiche_head($head, 'referers', $titre, -1, $picto);
print dol_get_fiche_head($head, 'referers', $titre, -1, $picto);
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $product, $action); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;

View File

@ -85,7 +85,7 @@ if ($id > 0 || !empty($ref))
$head = product_prepare_head($product);
$titre = $langs->trans("CardProduct".$product->type);
$picto = ($product->type == Product::TYPE_SERVICE ? 'service' : 'product');
dol_fiche_head($head, 'referers', $titre, -1, $picto);
print dol_get_fiche_head($head, 'referers', $titre, -1, $picto);
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $product, $action); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;