diff --git a/include/staff/ticket-open.inc.php b/include/staff/ticket-open.inc.php index 591442462ffc72772c684e119a35295506a93581..2606bb736fb852d5b66329257ecf6b70231c36af 100644 --- a/include/staff/ticket-open.inc.php +++ b/include/staff/ticket-open.inc.php @@ -9,11 +9,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); // Use thread entry to seed the ticket if (!$user && $_GET['tid'] && ($entry = ThreadEntry::lookup($_GET['tid']))) { + $_SESSION[':form-data']['message'] = Format::htmlchars($entry->getBody()); if ($entry->user_id) $user = User::lookup($entry->user_id); - else - $_SESSION[':form-data']['message'] = Format::htmlchars($entry->getBody()); if (($m= TicketForm::getInstance()->getField('message'))) { $k = 'attach:'.$m->getId(); foreach ($entry->getAttachments() as $a)