diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php
index 840d6c06ffc6d..fc7b46f4be887 100644
--- a/htdocs/core/boxes/box_actions.php
+++ b/htdocs/core/boxes/box_actions.php
@@ -106,7 +106,7 @@ public function loadBox($max = 5)
$sql .= " AND s.rowid = ".((int) $user->socid);
}
if (!$user->hasRight('agenda', 'allactions', 'read')) {
- $sql .= " AND (a.fk_user_author = ".((int) $user->id)." OR a.fk_user_action = ".((int) $user->id)." OR a.fk_user_done = ".((int) $user->id).")";
+ $sql .= " AND (a.fk_user_author = ".((int) $user->id)." OR a.fk_user_action = ".((int) $user->id).")";
}
$sql .= " ORDER BY a.datep ASC";
$sql .= $this->db->plimit($max, 0);
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index b4677961f5071..8c5a84c9120b8 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -9517,6 +9517,7 @@ public function fetchLinesCommon($morewhere = '')
if ($resql) {
$num_rows = $this->db->num_rows($resql);
$i = 0;
+ $this->lines = array();
while ($i < $num_rows) {
$obj = $this->db->fetch_object($resql);
if ($obj) {
diff --git a/htdocs/core/lib/product.lib.php b/htdocs/core/lib/product.lib.php
index f6c4bdcdb5f98..ea495890ad893 100644
--- a/htdocs/core/lib/product.lib.php
+++ b/htdocs/core/lib/product.lib.php
@@ -452,7 +452,7 @@ function show_stats_for_company($product, $socid)
print '
';
print $product->stats_propale['nb'];
print ' | ';
- print $product->stats_propale['qty'];
+ print price($product->stats_propale['qty'], 1, $langs, 0, 0);
print ' | ';
print '';
}
@@ -471,7 +471,7 @@ function show_stats_for_company($product, $socid)
print '';
print $product->stats_proposal_supplier['nb'];
print ' | ';
- print $product->stats_proposal_supplier['qty'];
+ print price($product->stats_proposal_supplier['qty'], 1, $langs, 0, 0);
print ' | ';
print '';
}
@@ -490,7 +490,7 @@ function show_stats_for_company($product, $socid)
print '';
print $product->stats_commande['nb'];
print ' | ';
- print $product->stats_commande['qty'];
+ print price($product->stats_commande['qty'], 1, $langs, 0, 0);
print ' | ';
print '';
}
@@ -509,7 +509,7 @@ function show_stats_for_company($product, $socid)
print '';
print $product->stats_commande_fournisseur['nb'];
print ' | ';
- print $product->stats_commande_fournisseur['qty'];
+ print price($product->stats_commande_fournisseur['qty'], 1, $langs, 0, 0);
print ' | ';
print '';
}
@@ -528,7 +528,7 @@ function show_stats_for_company($product, $socid)
print '';
print $product->stats_facture['nb'];
print ' | ';
- print $product->stats_facture['qty'];
+ print price($product->stats_facture['qty'], 1, $langs, 0, 0);
print ' | ';
print '';
}
@@ -566,7 +566,7 @@ function show_stats_for_company($product, $socid)
print '';
print $product->stats_facture_fournisseur['nb'];
print ' | ';
- print $product->stats_facture_fournisseur['qty'];
+ print price($product->stats_facture_fournisseur['qty'], 1, $langs, 0, 0);
print ' | ';
print '';
}
@@ -586,7 +586,7 @@ function show_stats_for_company($product, $socid)
print '';
print $product->stats_contrat['nb'];
print ' | ';
- print $product->stats_contrat['qty'];
+ print price($product->stats_contrat['qty'], 1, $langs, 0, 0);
print ' | ';
print '';
}