Addressbook: Fix required customfields were still required on advanced search dialog

Switched attribute name needed -> requred
This commit is contained in:
nathan 2023-02-13 08:53:12 -07:00
parent d1e7908cc0
commit d15c908e38

View File

@ -3435,7 +3435,7 @@ class addressbook_ui extends addressbook_bo
if(!isset($data['values'][''])) $sel_options['#'.$name][''] = lang('Select one');
}
// Make them not required, otherwise you can't search
$this->tmpl->setElementAttribute('#'.$name, 'needed', FALSE);
$this->tmpl->setElementAttribute('#' . $name, 'required', FALSE);
}
}
// configure edit template as search dialog