Skip to content

Commit

Permalink
Fix error management
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 5, 2018
1 parent f35679f commit 184c773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/adherents/subscription.php
Expand Up @@ -284,7 +284,7 @@
{
if (! $_POST["label"]) $errmsg=$langs->trans("ErrorFieldRequired",$langs->transnoentities("Label"));
if ($_POST["paymentsave"] != 'invoiceonly' && ! $_POST["operation"]) $errmsg=$langs->trans("ErrorFieldRequired",$langs->transnoentities("PaymentMode"));
if ($_POST["paymentsave"] != 'invoiceonly' && ! $_POST["accountid"]) $errmsg=$langs->trans("ErrorFieldRequired",$langs->transnoentities("FinancialAccount"));
if ($_POST["paymentsave"] != 'invoiceonly' && ! ($_POST["accountid"] > 0)) $errmsg=$langs->trans("ErrorFieldRequired",$langs->transnoentities("FinancialAccount"));
}
else
{
Expand All @@ -293,6 +293,7 @@
if ($errmsg)
{
setEventMessages($errmsg, null, 'errors');
$error++;
$action='addsubscription';
}
}
Expand Down

0 comments on commit 184c773

Please sign in to comment.