From 86645d8be9c6e6b13b6b9abe8b422b1531c7e4a1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 4 Jan 2013 00:23:46 +0100 Subject: [PATCH] Fix: Field birthday must be hidden for moral members --- htdocs/public/members/new.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index b22b2838aa3..65481d8359f 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -498,7 +498,7 @@ if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) print '<tr><td>'.$langs->trans("PasswordAgain").' <FONT COLOR="red">*</FONT></td><td><input type="password" name="pass2" size="20" value="'.GETPOST("pass2").'"></td></tr>'."\n"; } // Birthday -print '<tr><td>'.$langs->trans("DateToBirth").'</td><td>'; +print '<tr id="trbirth" class="trbirth"><td>'.$langs->trans("DateToBirth").'</td><td>'; print $form->select_date($birthday,'birth',0,0,1,"newmember"); print '</td></tr>'."\n"; // Photo @@ -551,8 +551,9 @@ if (! empty($conf->global->MEMBER_NEWFORM_DOLIBARRTURNOVER)) } if (jQuery("#morphy").val()==\'mor\') { jQuery(".amount").val(\'\'); - jQuery("#trbudget").show(); jQuery("#trcompany").show(); + jQuery("#trbirth").hide(); + jQuery("#trbudget").show(); if (jQuery("#budget").val() > 0) { jQuery(".amount").val(jQuery("#budget").val()); } else { jQuery("#budget").val(\'\'); } } -- GitLab