Addressbook: Fix sort changes wouldn't stay in some circumstances

In particular, sorting by Name would always reset
This commit is contained in:
nathangray 2020-12-29 09:39:14 -07:00
parent 0a95588642
commit fac0457436

View File

@ -2113,7 +2113,11 @@ class addressbook_ui extends addressbook_bo
$rows['no_event_column'] = true; $rows['no_event_column'] = true;
} }
// If we've changed the sort order on them, update the display
if($order !== $query['order'] )
{
$rows['order'] = $order; $rows['order'] = $order;
}
$rows['call_popup'] = $this->config['call_popup']; $rows['call_popup'] = $this->config['call_popup'];
$rows['customfields'] = array_values($this->customfields); $rows['customfields'] = array_values($this->customfields);