[Rt-commit] r15242 - in rt/3.8/trunk: share/html/Dashboards/Elements
sartak at bestpractical.com
sartak at bestpractical.com
Mon Aug 18 22:46:10 EDT 2008
Author: sartak
Date: Mon Aug 18 22:46:09 2008
New Revision: 15242
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Dashboards/Elements/ShowSubscription
Log:
r69733 at onn: sartak | 2008-08-18 22:36:48 -0400
The internal representation of subscription weekday is day name, so we don't need to index into the list of day names.
Modified: rt/3.8/trunk/share/html/Dashboards/Elements/ShowSubscription
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Elements/ShowSubscription (original)
+++ rt/3.8/trunk/share/html/Dashboards/Elements/ShowSubscription Mon Aug 18 22:46:09 2008
@@ -62,7 +62,7 @@
my $hour = $Subscription->SubValue('Hour');
if ($freq eq 'weekly') {
- my $day = (qw/Monday Tuesday Wednesday Thursday Friday Saturday Sunday/)[$Subscription->SubValue('Dow')];
+ my $day = $Subscription->SubValue('Dow');
$frequency = loc("weekly (on [_1]) at [_2]", loc($day), $hour);
}
elsif ($freq eq 'monthly') {
More information about the Rt-commit
mailing list