I have added some code in a attempt to make the “email opt out” field searchable by adding the following code to list.view.php, detail.view.php,etc. in the leads module.
public function preDisplay()
{
parent::preDisplay();
$this->bean->opt_out_c = $this->bean->email_opt_out;
}
However this works fine in the Detail View but doesn’t show the correct value in list view. all leads show the field unchecked.