From 52bdf22f2ce7fac3d46c5359fc7cfa93d25ea576 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 1 May 2014 13:39:52 -0500
Subject: [PATCH] Ticket assignment alert can be disabled

---
 include/staff/settings-alerts.inc.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/staff/settings-alerts.inc.php b/include/staff/settings-alerts.inc.php
index 0ab5cb689..85c883ba6 100644
--- a/include/staff/settings-alerts.inc.php
+++ b/include/staff/settings-alerts.inc.php
@@ -92,9 +92,11 @@
             </em></th></tr>
         <tr>
             <td><em><b>Status: </b></em> &nbsp;
-              <input name="assigned_alert_active" value="1" checked="checked" type="radio">Enable
+              <input name="assigned_alert_active" value="1" type="radio"
+                <?php echo $config['assigned_alert_active']?'checked="checked"':''; ?>>Enable
               &nbsp;&nbsp;
-              <input name="assigned_alert_active" value="0" type="radio">Disable
+              <input name="assigned_alert_active" value="0" type="radio"
+                <?php echo !$config['assigned_alert_active']?'checked="checked"':''; ?>>Disable
                &nbsp;&nbsp;&nbsp;<font class="error">&nbsp;<?php echo $errors['assigned_alert_active']; ?></font>
             </td>
         </tr>
-- 
GitLab