X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FDashboards%2FSubscription.html;h=b00dde6b6f4575c59bd1c04f91c651c9e07a7723;hp=3a57102c790f084993844a9954a04e60239c1d0c;hb=187086c479a09629b7d180eec513fb7657f4e291;hpb=aa38c070977cf63365a4d26a3e4a7e5049ad70d0 diff --git a/rt/share/html/Dashboards/Subscription.html b/rt/share/html/Dashboards/Subscription.html index 3a57102c7..b00dde6b6 100644 --- a/rt/share/html/Dashboards/Subscription.html +++ b/rt/share/html/Dashboards/Subscription.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -75,7 +75,7 @@
    % for my $portlet (@portlets) {
  1. - <% loc($portlet->{description}, $fields{'Rows'}) %> + <% loc( RT::SavedSearch->EscapeDescription($portlet->{description}), $fields{'Rows'}) %>
  2. % }
@@ -92,16 +92,17 @@ <&|/l&>Frequency: -> - <&|/l&>daily -
+> + +
-> - <&|/l&>Monday through Friday -
+> + +
-> -<&|/l&>weekly, <&|/l&>on +> +
-> -<&|/l&>monthly , <&|/l&>on day +> +
-> - <&|/l&>never - +> + @@ -173,6 +176,8 @@
<% loc("Leave blank to send to your current email address ([_1])", $session{'CurrentUser'}->EmailAddress) %>
+% $m->callback( %ARGS, CallbackName => 'SubscriptionFormEnd', FieldsRef => \%fields, +% SubscriptionObj => $SubscriptionObj, DashboardObj => $Dashboard ); @@ -213,6 +218,9 @@ my %fields = ( Counter => 0, ); +$m->callback( %ARGS, CallbackName => 'SubscriptionFields', FieldsRef => \%fields, + SubscriptionObj => $SubscriptionObj, DashboardObj => $Dashboard); + # update any fields with the values from the subscription object if ($SubscriptionObj) { for my $field (keys %fields) { @@ -227,6 +235,8 @@ for my $field (keys %fields) { if defined($ARGS{$field}); } +$m->callback( %ARGS, CallbackName => 'MassageSubscriptionFields', FieldsRef => \%fields, + SubscriptionObj => $SubscriptionObj, DashboardObj => $Dashboard); # this'll be defined on submit if (defined $ARGS{Save}) { @@ -248,16 +258,12 @@ if (defined $ARGS{Save}) { ($ok, $msg) = $SubscriptionObj->SetSubValues(%fields); $fields{'DashboardId'} = $id; - # not so good to spew base64-encoded data at the user :) - if ($msg =~ /^Content changed from/) { - $msg = "Subscription updated."; - } - + $msg = loc("Subscription updated") if $ok; push @results, $msg; } # create else { - Abort(loc("Unable to subscribe to dashboard [_1]: Permission denied", $id)) + Abort(loc("Unable to subscribe to dashboard [_1]: Permission Denied", $id)) unless $Dashboard->CurrentUserCanSubscribe; $SubscriptionObj = RT::Attribute->new($session{CurrentUser});