Added Show Archived Button to contacts, setup logic to work in other List views as well

This commit is contained in:
johnnyq
2023-09-26 15:24:31 -04:00
parent f8cdb79114
commit 35055489e5
2 changed files with 24 additions and 1 deletions

View File

@@ -98,3 +98,17 @@ if ($_GET['canned_date'] == "custom" && !empty($_GET['dtf'])) {
$dtf = "NULL";
$dtt = date('Y-m-d');
}
// Archived
$show_archived = 0;
if (isset($_GET['show_archived'])) {
$show_archived = intval($_GET['show_archived']);
}
if($show_archived == 1){
$archive_query = "archived_at IS NOT NULL";
} else {
$archive_query = "archived_at IS NULL";
}