Introduce new `communication_style` field for Contacts
[civicrm-core.git] / CRM / Core / BAO / OptionValue.php
index bd92c86d5230ad5b309e4a3edc68819496d7c386..9dfbb190e3b7f725e4894afecff56d6fa608fd82 100644 (file)
@@ -290,10 +290,12 @@ class CRM_Core_BAO_OptionValue extends CRM_Core_DAO_OptionValue {
     $value = $optionValue->value;
 
     // get the proper group name & affected field name
+    // todo: this may no longer be needed for individuals - check inputs
     $individuals = array(
       'gender' => 'gender_id',
       'individual_prefix' => 'prefix_id',
       'individual_suffix' => 'suffix_id',
+      'communication_style' => 'communication_style_id', // Not only Individuals -- but the code seems to be generic for all contact types, despite the naming...
     );
     $contributions = array('payment_instrument' => 'payment_instrument_id');
     $activities    = array('activity_type' => 'activity_type_id');