diff --git a/htdocs/comm/action/list.php b/htdocs/comm/action/list.php
index 9a4e3dcdb36..26c88b47ad3 100644
--- a/htdocs/comm/action/list.php
+++ b/htdocs/comm/action/list.php
@@ -41,7 +41,7 @@ $month=GETPOST("month",'int');
$day=GETPOST("day",'int');
$pid=GETPOST("projectid",'int',3);
$status=GETPOST("status",'alpha');
-$type=GETPOST('type');
+$type=GETPOST('type','alphanohtml');
$optioncss = GETPOST('optioncss','alpha');
// Set actioncode (this code must be same for setting actioncode into peruser, listacton and index)
if (GETPOST('actioncode','array'))
@@ -355,7 +355,7 @@ if ($resql)
//if ($actioncode) $nav.='';
//if ($resourceid) $nav.='';
if ($filter) $nav.='';
- if ($filtert) $nav.='';
+ //if ($filtert) $nav.='';
//if ($socid) $nav.='';
if ($showbirthday) $nav.='';
//if ($pid) $nav.='';
diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index 086cd1128dd..8be7fa249b8 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -616,7 +616,7 @@ if (empty($reshook))
// Close proposal
else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel','alpha'))
{
- if (! GETPOST('statut','int')) {
+ if (! (GETPOST('statut','int') > 0)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("CloseAs")), null, 'errors');
$action = 'statut';
} else {
diff --git a/htdocs/install/mysql/migration/repair.sql b/htdocs/install/mysql/migration/repair.sql
index 149ad78ee7a..69cd2a3bc79 100755
--- a/htdocs/install/mysql/migration/repair.sql
+++ b/htdocs/install/mysql/migration/repair.sql
@@ -348,6 +348,8 @@ update llx_facturedet set product_type = 1 where product_type = 2;
--update llx_commandedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
--update llx_facturedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
+update llx_propal set fk_statut = 1 where fk_statut = -1;
+
delete from llx_commande_fournisseur_dispatch where fk_commandefourndet = 0 or fk_commandefourndet IS NULL;