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 b6036de8e2
commit 4fc24305a1

View File

@ -2108,7 +2108,11 @@ class addressbook_ui extends addressbook_bo
$rows['no_event_column'] = true; $rows['no_event_column'] = true;
} }
$rows['order'] = $order; // If we've changed the sort order on them, update the display
if($order !== $query['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);