From 2d037eb34eb427f9af13d07a6dbf334f480c7ab0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 15 Jul 2016 19:35:00 +0200 Subject: [PATCH] FIX Direction of movement lost if an error occurs --- htdocs/product/stock/tpl/stockcorrection.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/stock/tpl/stockcorrection.tpl.php b/htdocs/product/stock/tpl/stockcorrection.tpl.php index d6c603332b5..3cb8ba47298 100644 --- a/htdocs/product/stock/tpl/stockcorrection.tpl.php +++ b/htdocs/product/stock/tpl/stockcorrection.tpl.php @@ -67,7 +67,7 @@ $langs->load("productbatch"); print '<td width="20%">'; print '<select name="mouvement" id="mouvement" class="flat">'; print '<option value="0">'.$langs->trans("Add").'</option>'; - print '<option value="1">'.$langs->trans("Delete").'</option>'; + print '<option value="1"'.(GETPOST('mouvement')?' selected="selected"':'').'>'.$langs->trans("Delete").'</option>'; print '</select></td>'; print '<td width="20%" class="fieldrequired">'.$langs->trans("NumberOfUnit").'</td><td width="20%"><input class="flat" name="nbpiece" id="nbpiece" size="10" value="'.GETPOST("nbpiece").'"></td>'; print '</tr>'; -- GitLab