Skip to content
Permalink
Browse files

Ticket Merge: Close Children

When tickets are merged, we should automatically close children Tickets. This commit gives the Agent an option of which closed status they want children tickets to be set to.

This references issue #5049
  • Loading branch information...
aydreeihn committed Oct 17, 2019
1 parent 3a41a8a commit 6fef208f023cd5efd498ce91a34e413f181609c0
@@ -2533,6 +2533,7 @@ function merge($tickets) {
$child->getThread()->setExtra($parentThread);
$child->setMergeType($options['combine']);
$child->setStatus(intval($options['statusId']));
if ($options['delete-child'] || $options['move-tasks']) {
if ($tasks = Task::objects()
@@ -85,6 +85,11 @@ merge_types:
<b>Separate Threads:</b>
Threads from Tickets will be displayed one Ticket at a time.
child_status:
title: Child Ticket Status
content: >
All Child Tickets will be set to a closed status since thread entries will all be moved to the Parent Ticket.
reply_types:
title: Reply Types
content: >
@@ -97,6 +97,26 @@
</label>
</div>
<br/><br/>
<div id="child-status">
&nbsp;&nbsp;&nbsp;
<label class="inline checkbox">
<?php echo __('Child Status');?>
<select id="statusId" name="statusId">
<?php
$states = array('closed');
foreach (TicketStatusList::getStatuses(
array('states' => $states)) as $s) {
if (!$s->isEnabled()) continue;
echo sprintf('<option value="%d">%s</option>',
$s->getId(),
$s->getLocalName());
}
?>
</select>
<i class="help-tip icon-question-sign" href="#child_status"></i>
</label>
</div>
<br/>
<?php } ?>

<div>

0 comments on commit 6fef208

Please sign in to comment.
You can’t perform that action at this time.