From dd38c3cde0daf654cb1930e33f0ab9dc82a43537 Mon Sep 17 00:00:00 2001 From: jlb Date: Tue, 28 Jan 2003 17:34:15 +0000 Subject: [PATCH] correction d'un bug remettant l'attribut publioc a 0 lors de l'edition d'un adherent --- htdocs/adherents/edit.php | 4 +++- htdocs/adherents/fiche.php | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/edit.php b/htdocs/adherents/edit.php index 6267947d751..c75b79a0b4b 100644 --- a/htdocs/adherents/edit.php +++ b/htdocs/adherents/edit.php @@ -56,8 +56,9 @@ if ($action == 'update') $adh->typeid = $HTTP_POST_VARS["type"]; $adh->commentaire = $HTTP_POST_VARS["comment"]; $adh->morphy = $HTTP_POST_VARS["morphy"]; - // recuperation du statut + // recuperation du statut et public $adh->statut = $HTTP_POST_VARS["statut"]; + $adh->public = $HTTP_POST_VARS["public"]; if ($adh->update($user->id) ) { @@ -133,6 +134,7 @@ if ($rowid) print ""; print ""; print "statut."\">"; + print "public."\">"; $htmls = new Form($db); diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index a4737cf00b6..4bc3f948d31 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -295,6 +295,13 @@ if ($rowid > 0) print 'Pass'.$adh->pass.' '; print 'Date de Naissance'.$adh->naiss.' '; print 'URL Photo'.$adh->photo.' '; + print 'Public ?'; + if ($adh->public==1){ + print 'Yes'; + }else{ + print "No"; + } + print ' '; print "\n";