+ // note that we are prepending id with "crm_disabled_opt" which identifies
+ // them as disabled so that they cannot be selected. We do some magic
+ // in crm-select2 js function that marks option values to "disabled"
+ // current QF version in CiviCRM does not support passing this attribute,
+ // so this is another ugly hack / workaround,
+ // also know one is too keen to upgrade QF :P
+ $idPrefix = '';
+ if ($formatSelectable && !$dao->is_selectable) {
+ $idPrefix = "crm_disabled_opt";
+ }