-
- Check for compatibility with old date format */
- if (preg_match("/(\d{4})-(\d{2})-(\d{2})/", hesk_GET('dt'), $m)) {
- $_GET['dt'] = $m[2] . $m[3] . $m[1];
- }
-
/* -> Now process the date value */
$dt = preg_replace('/[^0-9]/', '', hesk_GET('dt'));
if (strlen($dt) == 8) {
- $date = substr($dt, 4, 4) . '-' . substr($dt, 0, 2) . '-' . substr($dt, 2, 2);
- $date_input = substr($dt, 0, 2) . '/' . substr($dt, 2, 2) . '/' . substr($dt, 4, 4);
+ $date = substr($dt, 0, 4) . '-' . substr($dt, 4, 2) . '-' . substr($dt, 6, 2);
+ $date_input = $date;
/* This search is valid even if no query is entered */
if ($no_query) {
@@ -250,9 +230,6 @@ LEFT(`message`, 400) AS `message`,
hesk_process_messages($hesk_error_buffer, 'NOREDIRECT');
}
- /* This will handle error, success and notice messages */
- $handle = hesk_handle_messages();
-
# echo "$sql
";
// That's all the SQL we need for count
@@ -261,24 +238,49 @@ LEFT(`message`, 400) AS `message`,
/* Prepare variables used in search and forms */
require_once(HESK_PATH . 'inc/prepare_ticket_search.inc.php');
-
- /* If there has been an error message skip searching for tickets */
- if ($handle !== FALSE) {
- $href = 'find_tickets.php';
- require_once(HESK_PATH . 'inc/ticket_list.inc.php');
- }
?>
+
+
+
+
+
+
+
+
+
+ ';
+ }
-
+
+
+
+
diff --git a/admin/show_tickets.php b/admin/show_tickets.php
index f0c0e3a9..caa22758 100644
--- a/admin/show_tickets.php
+++ b/admin/show_tickets.php
@@ -93,32 +93,28 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?>