Tickets - Merging

- Fix merging UI not showing ticket status name correctly
- Add ability to move ticket notes and replies to the new parent ticket if desired (sometimes helpful, sometimes not)
This commit is contained in:
Marcus Hill
2024-04-12 22:26:27 +01:00
parent 453453cf9a
commit 43bd028298
4 changed files with 49 additions and 23 deletions

View File

@@ -9,6 +9,7 @@
</div>
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" id="current_ticket_id" name="ticket_id" value="<?php echo $ticket_id; ?>">
<input type="hidden" name="merge_move_replies" value="0"> <!-- Default 0 -->
<div class="modal-body bg-white">
<div class="form-group">
@@ -39,6 +40,20 @@
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="merge_move_replies" value="1" id="checkMoveReplies">
<label class="form-check-label" for="checkMoveReplies">
Move notes & replies to the new parent ticket
</label>
</div>
</div>
<div class="alert alert-dark" role="alert">
<i>The current ticket will be closed once merging is complete.</i>
</div>
<hr>
<div class="form-group" id="merge_into_details_div" hidden>
<h5 id="merge_into_details_number"></h5>
@@ -60,4 +75,4 @@
</div>
<!-- Ticket merge JS -->
<script src="js/ticket_merge.js"></script>
<script src="js/ticket_merge.js"></script>