CRM-13929 - Parameterize radio clear widget
[civicrm-core.git] / CRM / Contact / Form / Edit / Demographics.php
index 6a4dfea8e153df20b2c4457f6fc9839c419c3544..7325c54441a18feeb58c1a4eea452365e122c318 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Contact_Form_Edit_Demographics {
         array('id' => "civicrm_gender_{$var}_{$key}")
       );
     }
-    $form->addGroup($genderOptions, 'gender_id', ts('Gender'));
+    $form->addGroup($genderOptions, 'gender_id', ts('Gender'))->setAttribute('unselectable', TRUE);
 
     $form->addDate('birth_date', ts('Date of Birth'), FALSE, array('formatType' => 'birth'));