From 4f6b0fead6468ecb318bab629339bb8d64340c07 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 17 May 2018 15:13:16 +0200 Subject: [PATCH] Fix filter on test/live mode for stripe card --- htdocs/societe/paymentmodes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 9b9ac758fa7..0a2df0d3d87 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -841,6 +841,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' $sql='SELECT rowid FROM '.MAIN_DB_PREFIX."societe_rib"; $sql.=" WHERE type in ('card', 'paypal')"; $sql.=" AND fk_soc = ".$object->id; + $sql.=" AND status = ".$servicestatus; $resql = $db->query($sql); if ($resql)