Skip to content

Commit

Permalink
Merge pull request #5300 from defrance/patch-8
Browse files Browse the repository at this point in the history
if socity then company requiered
  • Loading branch information
eldy committed Jun 4, 2016
2 parents c3cf72a + a193920 commit 5de8eef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions htdocs/adherents/card.php
Expand Up @@ -265,6 +265,11 @@
$langs->load("errors");
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Firstname")), null, 'errors');
}
if ($morphy == 'mor' && empty($societe)) {
$error++;
$langs->load("errors");
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Company")), null, 'errors');
}
// Test si le login existe deja
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
{
Expand Down Expand Up @@ -514,6 +519,11 @@
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Password")), null, 'errors');
}
}
if ($morphy == 'mor' && empty($societe)) {
$error++;
$langs->load("errors");
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Company")), null, 'errors');
}
if ($morphy != 'mor' && empty($lastname)) {
$error++;
$langs->load("errors");
Expand Down

0 comments on commit 5de8eef

Please sign in to comment.