From 002181190cae272776d8c2b061689e9c59255218 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 6 Jun 2018 15:28:50 +0200 Subject: [PATCH] Fix option not used --- htdocs/stripe/admin/stripe.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php index 24224a4f18c..964280055c2 100644 --- a/htdocs/stripe/admin/stripe.php +++ b/htdocs/stripe/admin/stripe.php @@ -75,7 +75,7 @@ if ($action == 'setvalue' && $user->admin) $error ++; $result = dolibarr_set_const($db, "STRIPE_MINIMAL_3DSECURE", GETPOST('STRIPE_MINIMAL_3DSECURE', 'int'), 'chaine', 0, '', $conf->entity); if (! $result > 0) - $error ++; + $error ++; $result = dolibarr_set_const($db, "ONLINE_PAYMENT_CSS_URL", GETPOST('ONLINE_PAYMENT_CSS_URL', 'alpha'), 'chaine', 0, '', $conf->entity); if (! $result > 0) $error ++; @@ -265,13 +265,16 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // What is this for ? } // Minimal amount for force 3Dsecure if it's optionnal -print ''; -print $langs->trans("STRIPE_MINIMAL_3DSECURE").''; -print ''.$langs->getCurrencySymbol($conf->currency).''; +if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // TODO Not used by current code +{ + print ''; + print $langs->trans("STRIPE_MINIMAL_3DSECURE").''; + print ''.$langs->getCurrencySymbol($conf->currency).''; +} +// Warehouse for automatic decrement if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // What is this for ? { - // Stock for automatic decrement print ''; print $langs->trans("ONLINE_PAYMENT_WAREHOUSE").''; print $formproduct->selectWarehouses($conf->global->ONLINE_PAYMENT_WAREHOUSE,'ONLINE_PAYMENT_WAREHOUSE','',1,$disabled);