mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Added Show Archived Button to contacts, setup logic to work in other List views as well
This commit is contained in:
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user