Ticket - Notifications

Allow notifying contacts & watchers of a ticket when they are added/updated (#937)
This commit is contained in:
Marcus Hill
2024-04-13 15:33:46 +01:00
parent 034c12d6c3
commit 2dc8e50ef8
5 changed files with 204 additions and 8 deletions

View File

@@ -11,6 +11,7 @@
<input type="hidden" name="ticket_id" value="<?php echo $ticket_id; ?>">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<input type="hidden" name="ticket_number" value="<?php echo "$ticket_prefix$ticket_number"; ?>">
<input type="hidden" name="watcher_notify" value="0"> <!-- Default 0 -->
<div class="modal-body bg-white">
<div class="form-group">
@@ -37,7 +38,18 @@
</select>
</div>
</div>
<?php if (!empty($config_smtp_host)) { ?>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="watcher_notify" value="1" id="checkNotifyWatcher">
<label class="form-check-label" for="checkNotifyWatcher">
Send email notification
</label>
</div>
</div>
<?php } ?>
</div>
<div class="modal-footer bg-white">