From 8ed1fbe542da4fab5d950755517aaef9c593d8c1 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Fri, 10 Jan 2014 06:53:11 +0000 Subject: [PATCH] bug:Fix bug where initial collaborator won't get emailed due to missing checkbox. --- include/staff/ticket-view.inc.php | 9 ++++----- scp/js/ticket.js | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index b255b225d..3ac6b4efd 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -446,12 +446,11 @@ $tcount+= $ticket->getNumNotes(); <label><strong>Collaborators:</strong></label> </td> <td> + <input type='checkbox' value='1' name="emailcollab" id="emailcollab" + <?php echo ((!$info['emailcollab'] && !$errors) || isset($info['emailcollab']))?'checked="checked"':''; ?> + style="display:<?php echo $ticket->getNumCollaborators() ? 'inline-block': 'none'; ?>;" + > <?php - if($ticket->getNumCollaborators()) { ?> - <input type='checkbox' value='1' name="emailcollab" id="emailcollab" - <?php echo ((!$info['emailcollab'] && !$errors) || isset($info['emailcollab']))?'checked="checked"':''; ?>> - <?php - } $recipients = 'Add Recipients'; if ($ticket->getNumCollaborators()) $recipients = sprintf('Recipients (%d)', $ticket->getNumActiveCollaborators()); diff --git a/scp/js/ticket.js b/scp/js/ticket.js index cbe25c1e3..ad51940e9 100644 --- a/scp/js/ticket.js +++ b/scp/js/ticket.js @@ -368,6 +368,7 @@ jQuery(function($) { e.preventDefault(); var url = 'ajax.php/'+$(this).attr('href').substr(1); $.dialog(url, 201, function (resp) { + $('input#emailcollab').show(); $('#recipients').text(resp); }); return false; -- GitLab