Skip to content

Commit

Permalink
fix : login required not verified on update
Browse files Browse the repository at this point in the history
  • Loading branch information
defrance committed Jun 4, 2016
1 parent 4e0f2d6 commit af8e080
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions htdocs/adherents/card.php
Expand Up @@ -253,7 +253,8 @@
}
$lastname=$_POST["lastname"];
$firstname=$_POST["firstname"];
$morphy=$morphy=$_POST["morphy"];
$morphy=$_POST["morphy"];
$login=$_POST["login"];
if ($morphy != 'mor' && empty($lastname)) {
$error++;
$langs->load("errors");
Expand All @@ -264,7 +265,14 @@
$langs->load("errors");
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Firstname")), null, 'errors');
}

// Test si le login existe deja
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
{
if (empty($login)) {
$error++;
setEventMessages($langs->trans("ErrorFieldRequired", $langs->trans("Login")), null, 'errors');
}
}
// Create new object
if ($result > 0 && ! $error)
{
Expand Down

0 comments on commit af8e080

Please sign in to comment.