diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php
index f17e622210eac..f9231f4f24750 100644
--- a/htdocs/compta/bank/treso.php
+++ b/htdocs/compta/bank/treso.php
@@ -267,9 +267,9 @@
$parameters = array('obj' => $obj);
$reshook = $hookmanager->executeHooks('moreFamily', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if(empty($reshook)){
- $ref = isset($hookmanager->resArray['ref']) ? $hookmanager->resArray['ref'] : '';
- $refcomp = isset($hookmanager->resArray['refcomp']) ? $hookmanager->resArray['refcomp'] : '';
- $paiement = isset($hookmanager->resArray['paiement']) ? $hookmanager->resArray['paiement'] : 0;
+ $ref = isset($hookmanager->resArray['ref']) ? $hookmanager->resArray['ref'] : $ref;
+ $refcomp = isset($hookmanager->resArray['refcomp']) ? $hookmanager->resArray['refcomp'] : $refcomp;
+ $paiement = isset($hookmanager->resArray['paiement']) ? $hookmanager->resArray['paiement'] : $paiement;
}
$total_ttc = $obj->total_ttc;
diff --git a/htdocs/product/list.php b/htdocs/product/list.php
index 460e9d5ee45fe..e7e8f1e499993 100644
--- a/htdocs/product/list.php
+++ b/htdocs/product/list.php
@@ -458,6 +458,10 @@
if($type == Product::TYPE_SERVICE) $rightskey='service';
if($user->rights->{$rightskey}->creer)
{
+ if ($type === "") {
+ $newcardbutton.= dolGetButtonTitle($langs->trans('NewProduct'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/product/card.php?action=create&type=0');
+ $type = Product::TYPE_SERVICE;
+ }
$label='NewProduct';
if($type == Product::TYPE_SERVICE) $label='NewService';
$newcardbutton.= dolGetButtonTitle($langs->trans($label), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/product/card.php?action=create&type='.$type);
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index 2ee5f5bedf58f..2ab86d454f0f9 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -596,6 +596,7 @@
print '';
print '';
print '';
+print '';
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_companies', 0, $newcardbutton, '', $limit);