X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FEdit%2FDemographics.php;h=a54bb4864eb971556cb832701f8c4d40dad28085;hb=577b7e48ebcaa765fb308e02407f8988f1ed6131;hp=7325c54441a18feeb58c1a4eea452365e122c318;hpb=ebe9a984da7a768d21bcd99f33d28bde4cf0597f;p=civicrm-core.git diff --git a/CRM/Contact/Form/Edit/Demographics.php b/CRM/Contact/Form/Edit/Demographics.php index 7325c54441..a54bb4864e 100644 --- a/CRM/Contact/Form/Edit/Demographics.php +++ b/CRM/Contact/Form/Edit/Demographics.php @@ -1,9 +1,9 @@ "civicrm_gender_{$var}_{$key}") ); } - $form->addGroup($genderOptions, 'gender_id', ts('Gender'))->setAttribute('unselectable', TRUE); + $form->addGroup($genderOptions, 'gender_id', ts('Gender'))->setAttribute('allowClear', TRUE); $form->addDate('birth_date', ts('Date of Birth'), FALSE, array('formatType' => 'birth')); @@ -71,6 +71,9 @@ class CRM_Contact_Form_Edit_Demographics { * * @access public * + * @param $form + * @param $defaults + * * @return void */ static function setDefaultValues(&$form, &$defaults) {}