Skip to content
Snippets Groups Projects
Commit 52fa5df6 authored by aydreeihn's avatar aydreeihn
Browse files

Thread Entry Action: New Ticket

- Fix to make sure tickets can be created from a User's message (not just Agents or Internal Notes)
parent 5cb8aceb
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment