From 199067e4b8258fc29387d9f3dade2f3d716688e1 Mon Sep 17 00:00:00 2001 From: guillaume-uH57J9 Date: Sun, 9 Apr 2017 22:00:19 +0200 Subject: [PATCH] members/new.php : non-public by default in the form, disable public by default, to be consistent with class Adherent's default value --- htdocs/public/members/new.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index e01201ccea3..c307512e257 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -223,7 +223,7 @@ if ($action == 'add') // email a peu pres correct et le login n'existe pas $adh = new Adherent($db); $adh->statut = -1; - $adh->public = $_POST["public"]; + $adh->public = $public; $adh->firstname = $_POST["firstname"]; $adh->lastname = $_POST["lastname"]; $adh->civility_id = $_POST["civility_id"]; @@ -508,7 +508,7 @@ print ''."\n"; // Photo print ''.$langs->trans("URLPhoto").''."\n"; // Public -print ''.$langs->trans("Public").''."\n"; +print ''.$langs->trans("Public").''."\n"; // Extrafields foreach($extrafields->attribute_label as $key=>$value) {