[Rt-commit] rt branch, 4.2/ical-link-in-description, created. rt-4.1.8-301-ga35969d

Alex Vandiver alexmv at bestpractical.com
Mon May 13 18:32:28 EDT 2013


The branch, 4.2/ical-link-in-description has been created
        at  a35969da726069523503d1f5bf9f459450a2f4ee (commit)

- Log -----------------------------------------------------------------
commit a35969da726069523503d1f5bf9f459450a2f4ee
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon May 13 18:30:40 2013 -0400

    Link to ticket display page in iCal event description
    
    Some iCalendar consumers (including Google Calandar) do not make use of
    the URL attribute, leading the event in the calendar to provide no
    obvious way to find the relevant ticket.  Also provide the URL in the
    more canonical DESCRIPTION field.

diff --git a/share/html/NoAuth/iCal/dhandler b/share/html/NoAuth/iCal/dhandler
index 7e7ce7d..d4c2e05 100644
--- a/share/html/NoAuth/iCal/dhandler
+++ b/share/html/NoAuth/iCal/dhandler
@@ -89,12 +89,14 @@ while (my $t = $tickets->Next) {
     next unless $t->DueObj->Unix > 0;
 
     my $starttime = $t->StartsObj->Unix > 0 ? $t->StartsObj : $t->CreatedObj;
+    my $url = RT->Config->Get('WebURL') . "Ticket/Display.html?id=".$t->id,
 
     my $now = RT::Date->new( $cu ); $now->SetToNow;
     my $start = Data::ICal::Entry::Event->new;
     my $end   = Data::ICal::Entry::Event->new;
     $_->add_properties(
-        url       => RT->Config->Get('WebURL') . "Ticket/Display.html?id=".$t->id,
+        url       => $url,
+        description => $url,
         organizer => $t->OwnerObj->Name,
         dtstamp   => $now->iCal,
         created   => $t->CreatedObj->iCal,

-----------------------------------------------------------------------


More information about the Rt-commit mailing list