diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php
index 8fdde13d46795..633914ce74bf3 100644
--- a/htdocs/core/boxes/box_actions.php
+++ b/htdocs/core/boxes/box_actions.php
@@ -97,7 +97,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 95a9922ca4052..4f86c955552a1 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -10307,6 +10307,7 @@ public function fetchLinesCommon($morewhere = '', $noextrafields = 0)
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 48c30219248db..3080a4a5cbe11 100644
--- a/htdocs/core/lib/product.lib.php
+++ b/htdocs/core/lib/product.lib.php
@@ -453,7 +453,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 '';
}
@@ -472,7 +472,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 '';
}
@@ -491,7 +491,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 '';
}
@@ -510,7 +510,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 '';
}
@@ -529,7 +529,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 '';
}
@@ -567,7 +567,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 '';
}
@@ -627,7 +627,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 '';
}