From 7042b868f70d0c29adad0ae844fc9ac94d0c047f Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Wed, 15 Jul 2015 21:00:14 +0000
Subject: [PATCH] New ticket task

View new task in the context of ticket view.
---
 include/staff/ticket-tasks.inc.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/staff/ticket-tasks.inc.php b/include/staff/ticket-tasks.inc.php
index 7c2ece1ad..a7a6d12ab 100644
--- a/include/staff/ticket-tasks.inc.php
+++ b/include/staff/ticket-tasks.inc.php
@@ -163,7 +163,8 @@ $(function() {
         $.dialog(url, [201], function (xhr) {
             var tid = parseInt(xhr.responseText);
             if (tid) {
-                var url = 'ajax.php/tasks/'+tid+'/view';
+                var url = 'ajax.php/tickets/'+<?php echo $ticket->getId();
+                ?>+'/tasks/'+tid+'/view';
                 var $container = $('div#task_content');
                 $container.load(url, function () {
                     $('.tip_box').remove();
-- 
GitLab