From 2abd819aac7ee823999046e7cdd80d49789b0714 Mon Sep 17 00:00:00 2001
From: Kevin Thorne <kevin@enhancesoft.com>
Date: Wed, 2 Nov 2016 02:29:08 -0500
Subject: [PATCH] Email Banlist Sorting

This addresses issue #3452 where upon sorting email banlist it redirects to Agents tab.
---
 include/staff/banlist.inc.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/staff/banlist.inc.php b/include/staff/banlist.inc.php
index aef6966cc..c95e23bb1 100644
--- a/include/staff/banlist.inc.php
+++ b/include/staff/banlist.inc.php
@@ -110,10 +110,10 @@ $query="$select $from $where ORDER BY $order_by LIMIT ".$pageNav->getStart().","
         <thead>
             <tr>
                 <th width="4%">&nbsp;</th>
-                <th width="56%"><a <?php echo $email_sort; ?> href="staff.php?<?php echo $qstr; ?>&sort=email"><?php echo __('Email Address');?></a></th>
-                <th width="10%"><a  <?php echo $status_sort; ?> href="staff.php?<?php echo $qstr; ?>&sort=status"><?php echo __('Ban Status');?></a></th>
-                <th width="10%"><a <?php echo $created_sort; ?> href="staff.php?<?php echo $qstr; ?>&sort=created"><?php echo __('Date Added');?></a></th>
-                <th width="20%"><a <?php echo $updated_sort; ?> href="staff.php?<?php echo $qstr; ?>&sort=updated"><?php echo __('Last Updated');?></a></th>
+                <th width="56%"><a <?php echo $email_sort; ?> href="banlist.php?<?php echo $qstr; ?>&sort=email"><?php echo __('Email Address');?></a></th>
+                <th width="10%"><a  <?php echo $status_sort; ?> href="banlist.php?<?php echo $qstr; ?>&sort=status"><?php echo __('Ban Status');?></a></th>
+                <th width="10%"><a <?php echo $created_sort; ?> href="banlist.php?<?php echo $qstr; ?>&sort=created"><?php echo __('Date Added');?></a></th>
+                <th width="20%"><a <?php echo $updated_sort; ?> href="banlist.php?<?php echo $qstr; ?>&sort=updated"><?php echo __('Last Updated');?></a></th>
             </tr>
         </thead>
         <tbody>
-- 
GitLab