Fix: field "public" missing

This commit is contained in:
Regis Houssin 2009-12-30 12:03:39 +00:00
parent 6e561214e7
commit 79e0c59438

View File

@ -348,6 +348,7 @@ if ($_POST["action"] == 'add' && $user->rights->adherent->creer)
$comment=$_POST["comment"]; $comment=$_POST["comment"];
$morphy=$_POST["morphy"]; $morphy=$_POST["morphy"];
$cotisation=$_POST["cotisation"]; $cotisation=$_POST["cotisation"];
$public=$_POST["public"];
$userid=$_POST["userid"]; $userid=$_POST["userid"];
$socid=$_POST["socid"]; $socid=$_POST["socid"];
@ -372,6 +373,8 @@ if ($_POST["action"] == 'add' && $user->rights->adherent->creer)
$adh->morphy = $morphy; $adh->morphy = $morphy;
$adh->user_id = $userid; $adh->user_id = $userid;
$adh->fk_soc = $socid; $adh->fk_soc = $socid;
$adh->public = $public;
foreach($_POST as $key => $value) foreach($_POST as $key => $value)
{ {
if (preg_match("/^options_/",$key)) if (preg_match("/^options_/",$key))