From e38c1c8ee8a6aceff2ad93902556a2464816a78b Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Mon, 15 Oct 2012 14:24:39 -0400
Subject: [PATCH] Disable auto-refresh on post AND action - e.g on new ticket
 form

---
 scp/tickets.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp/tickets.php b/scp/tickets.php
index 9cc247cc6..2d408d503 100644
--- a/scp/tickets.php
+++ b/scp/tickets.php
@@ -476,7 +476,7 @@ if($ticket) {
         $nav->setActiveSubMenu(-1);
 
     //set refresh rate if the user has it configured
-    if(!$_POST && $_REQUEST['a']!='search'  && ($min=$thisstaff->getRefreshRate()))
+    if(!$_POST && !$_REQUEST['a'] && ($min=$thisstaff->getRefreshRate()))
         $ost->addExtraHeader('<meta http-equiv="refresh" content="'.($min*60).'" />');
 }
 
-- 
GitLab