From 0a6079934b880cf9a6b256a63e4fce5de81426b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Wed, 4 Sep 2013 14:26:31 +0200 Subject: [PATCH] alertonly checkbox stays checked --- htdocs/product/stock/replenish.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index d615a7ddc07..f2d4f04a79b 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -210,6 +210,7 @@ $sql .= ' HAVING (p.desiredstock > SUM(s.reel) or SUM(s.reel) is NULL)'; $sql .= ' AND p.desiredstock > 0'; if ($salert == 'on') { $sql .= ' AND SUM(s.reel) < p.seuil_stock_alerte AND p.seuil_stock_alerte is not NULL'; + $alertchecked = 'checked="checked"'; } $sql .= $db->order($sortfield,$sortorder); $sql .= $db->plimit($limit + 1, $offset); @@ -370,7 +371,7 @@ if ($resql) { ''; } echo ' ', - '' . $langs->trans('AlertOnly') . ' ', + '' . $langs->trans('AlertOnly') . ' ', ' ', ' ', ' ',