From d15c908e38a64492ffeae3143022eb48d36109c0 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 13 Feb 2023 08:53:12 -0700 Subject: [PATCH] Addressbook: Fix required customfields were still required on advanced search dialog Switched attribute name needed -> requred --- addressbook/inc/class.addressbook_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index bff4686e89..108058f686 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -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