diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index 429d6794bb0fd553b12f9399c8d40f9887592fb2..c43bec60fe54327bcfb6f07e81bbcb55e121269d 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -581,7 +581,7 @@ $tcount = $ticket->getThreadEntries($types)->count(); class="<?php if ($cfg->isRichTextEnabled()) echo 'richtext'; ?> draft draft-delete" <?php list($draft, $attrs) = Draft::getDraftAndDataAttrs('ticket.response', $ticket->getId(), $info['response']); - echo $attrs; ?>><?php echo $draft ?: $info['response']; + echo $attrs; ?>><?php echo $_POST ? $info['response'] : $draft; ?></textarea> <div id="reply_form_attachments" class="attachments"> <?php @@ -698,7 +698,7 @@ $tcount = $ticket->getThreadEntries($types)->count(); class="<?php if ($cfg->isRichTextEnabled()) echo 'richtext'; ?> draft draft-delete" <?php list($draft, $attrs) = Draft::getDraftAndDataAttrs('ticket.note', $ticket->getId(), $info['note']); - echo $attrs; ?>><?php echo $draft ?: $info['note']; + echo $attrs; ?>><?php echo $_POST ? $info['note'] : $draft; ?></textarea> <div class="attachments"> <?php