members/new.php : non-public by default
in the form, disable public by default, to be consistent with class Adherent's default value
This commit is contained in:
parent
b054ca8267
commit
199067e4b8
@ -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 '</td></tr>'."\n";
|
||||
// Photo
|
||||
print '<tr><td>'.$langs->trans("URLPhoto").'</td><td><input type="text" name="photo" size="40" value="'.dol_escape_htmltag(GETPOST('photo')).'"></td></tr>'."\n";
|
||||
// Public
|
||||
print '<tr><td>'.$langs->trans("Public").'</td><td><input type="checkbox" name="public" value="1" checked></td></tr>'."\n";
|
||||
print '<tr><td>'.$langs->trans("Public").'</td><td><input type="checkbox" name="public"></td></tr>'."\n";
|
||||
// Extrafields
|
||||
foreach($extrafields->attribute_label as $key=>$value)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user