X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FShowReminders;h=04d1a961125dac824d09e468d658728db235e425;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=18945c10ee65ccea91f9c75639a6b3d9e382599a;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/share/html/Elements/ShowReminders b/rt/share/html/Elements/ShowReminders index 18945c10e..04d1a9611 100644 --- a/rt/share/html/Elements/ShowReminders +++ b/rt/share/html/Elements/ShowReminders @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -57,7 +57,7 @@ my $i =0; while ( my $reminder = $reminders->Next ) { $i++; my $dueobj = $reminder->DueObj; -my $overdue = $dueobj->Unix > 0 && $dueobj->Diff < 0 ? 1 : 0; +my $overdue = $dueobj->IsSet && $dueobj->Diff < 0 ? 1 : 0; my $targets = RT::Tickets->new($session{'CurrentUser'}); $targets->{'allow_deleted_search'} = 1; @@ -67,7 +67,7 @@ if ( my $ticket= $targets->First ) { -<% $reminder->Subject %> +<% $reminder->Subject %> <% $overdue ? '' : '' |n %><% $dueobj->AgeAsString || loc('Not set') %><% $overdue ? '' : '' |n %> @@ -76,7 +76,7 @@ if ( my $ticket= $targets->First ) { #<% $ticket->Id %>: <% $ticket->Subject %> % } else { -
Couldn't find Ticket for reminder <% $reminder->id %>. Please contact administrator.
% } @@ -91,7 +91,7 @@ my $tsql = 'Type = "reminder"' . ' AND ( Owner = "Nobody" OR Owner ="' . $session{'CurrentUser'}->id . '")' . ' AND ( Status = "new" OR Status = "open" )'; -$tsql .= ' AND Due < "now"' if $OnlyOverdue; +$tsql .= ' AND ( Due < "now" OR Due IS NULL )' if $OnlyOverdue; $reminders->FromSQL($tsql); $reminders->OrderBy( FIELD => 'Due', ORDER => 'ASC' );