Addressbook: Fix advanced search was losing private custom field values when they were on a separate tab

This commit is contained in:
nathan 2023-02-16 08:41:23 -07:00
parent ee244bf282
commit 727c122d8f

View File

@ -3458,6 +3458,7 @@ class addressbook_ui extends addressbook_bo
$this->tmpl->setElementAttribute('#' . $name, 'required', FALSE);
if($this->config['private_cf_tab'] == 'True' && $data['private'])
{
$content['private_cfs']['#' . $name] = $content['#' . $name];
// Private CF tab results in a different ID, turn required off there too
$this->tmpl->setElementAttribute('private_cfs[#' . $name . ']', 'required', FALSE);
}