fix travis
This commit is contained in:
parent
08379cbfc6
commit
14a3e30270
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user