Fix: Mise a jour LDAP sur Mise a jour adherent
This commit is contained in:
parent
0fab397495
commit
039ae4485f
@ -106,7 +106,12 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"])
|
|||||||
$datenaiss=dolibarr_mktime(12, 0, 0, $_POST["naissmonth"], $_POST["naissday"], $_POST["naissyear"]);
|
$datenaiss=dolibarr_mktime(12, 0, 0, $_POST["naissmonth"], $_POST["naissday"], $_POST["naissyear"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$adh->id = $_POST["rowid"];
|
// Charge objet actuel
|
||||||
|
$result=$adh->fetch($_POST["rowid"]);
|
||||||
|
$result=$adh->fetch_subscriptions($_POST["rowid"]);
|
||||||
|
if ($result > 0)
|
||||||
|
{
|
||||||
|
// Modifie valeures
|
||||||
$adh->prenom = $_POST["prenom"];
|
$adh->prenom = $_POST["prenom"];
|
||||||
$adh->nom = $_POST["nom"];
|
$adh->nom = $_POST["nom"];
|
||||||
$adh->fullname = trim($adh->prenom.' '.$adh->nom);
|
$adh->fullname = trim($adh->prenom.' '.$adh->nom);
|
||||||
@ -177,6 +182,7 @@ if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"])
|
|||||||
$action='';
|
$action='';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($_POST["action"] == 'add')
|
if ($_POST["action"] == 'add')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user