From 9c11fac3f8d3f31306de62185f623b7afb6e94ee Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 4 Dec 2015 19:45:01 -0800 Subject: [PATCH] link to ticket, RT#34237 --- httemplate/misc/xmlhttp-ticket-update.html | 2 +- rt/share/html/Elements/CalendarSlotSchedule | 4 +++- rt/share/html/Search/Schedule.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html index 46ed5bbad..bd58b95c6 100644 --- a/httemplate/misc/xmlhttp-ticket-update.html +++ b/httemplate/misc/xmlhttp-ticket-update.html @@ -50,7 +50,7 @@ if ( $ticket ) { 'sched_label' => FS::sched_avail::pretty_time($sh*60+$sm). '-'. FS::sched_avail::pretty_time($eh*60+$em). ': '. - $cust_main[0]->_FreesideURILabel, + encode_entities($cust_main[0]->_FreesideURILabel), }; } else { $return = { 'error' => $smsg }; diff --git a/rt/share/html/Elements/CalendarSlotSchedule b/rt/share/html/Elements/CalendarSlotSchedule index bf66dcae5..538a41a94 100644 --- a/rt/share/html/Elements/CalendarSlotSchedule +++ b/rt/share/html/Elements/CalendarSlotSchedule @@ -19,6 +19,7 @@ % % my $bgcolor = '666666;border-color:#555555'; % my $content = ''; +% my $link = ''; % my $selectable = 0; % my $draggable_ticketid = 0; % my $draggable_length = 0; @@ -59,6 +60,7 @@ % FS::sched_avail::pretty_time($due). % ': '. $cust_main[0]->_FreesideURILabel; % #'install for custname XX miles away'; #XXX placeholder/more +% $link = qq( view); % $draggable_ticketid = $id; % $draggable_length = $due - $starts; % @@ -126,7 +128,7 @@ % } % % } - ><% $content |h %> + ><% $content |h %><% $link |n %>