Browse Source

More work on ticket table

tags/3.0.0-beta-1^2
Mike Koch 3 years ago
parent
commit
8c01a46738
2 changed files with 10 additions and 5 deletions
  1. 6
    4
      admin/admin_new_main.php
  2. 4
    1
      inc/ticket/get_tickets.inc.php

+ 6
- 4
admin/admin_new_main.php View File

@@ -71,8 +71,6 @@ foreach ($statuses as $status) {
}
$search_filter['critical_on_top'] = true;

get_tickets($search_filter, $hesk_settings);


hesk_handle_messages();
?>
@@ -93,10 +91,14 @@ hesk_handle_messages();
<p><i><?php echo $hesklang['na_view_tickets']; ?></i></p>
<?php
else:
$tickets = get_tickets($search_filter, $hesk_settings);
?>
<table class="table table-hover">

<thead>
<?php foreach ($hesk_settings['ticket_list'] as $ticket_header): ?>
<th><?php echo $hesk_settings['possible_ticket_list'][$ticket_header]; ?></th>
<?php endforeach; ?>
</thead>
</table>
<?php endif; ?>
</div>

+ 4
- 1
inc/ticket/get_tickets.inc.php View File

@@ -91,7 +91,10 @@ function get_tickets($search_filter, $hesk_settings) {
}

//Uncomment for debugging purposes
// echo "SQL: $sql";
//echo "SQL: $sql";
$results = hesk_dbQuery($sql);

return $results;
}

function handle_ticket_assignments($search_filter, $sql) {

Loading…
Cancel
Save