[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.12-98-g6be4916

Jim Brandt jbrandt at bestpractical.com
Mon Feb 1 11:55:11 EST 2016


The branch, 4.2-trunk has been updated
       via  6be49169f95e21d83a61efea70f9ef0e9c81cf21 (commit)
      from  6c46b1d0b09aa91bc56d55f5b6c690163463ecaf (commit)

Summary of changes:
 share/html/Dashboards/Subscription.html | 7 +++++++
 1 file changed, 7 insertions(+)

- Log -----------------------------------------------------------------
commit 6be49169f95e21d83a61efea70f9ef0e9c81cf21
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon Feb 1 11:55:07 2016 -0500

    Add callbacks to dashboard subscription page

diff --git a/share/html/Dashboards/Subscription.html b/share/html/Dashboards/Subscription.html
index 3bf39d0..f31cd90 100644
--- a/share/html/Dashboards/Subscription.html
+++ b/share/html/Dashboards/Subscription.html
@@ -176,6 +176,8 @@
 <input name="Recipient" id="Recipient" size="30" value="<%$fields{Recipient} ? $fields{Recipient} : ''%>" />
 <div class="hints"><% loc("Leave blank to send to your current email address ([_1])", $session{'CurrentUser'}->EmailAddress) %></div>
 </td></tr>
+% $m->callback( %ARGS, CallbackName => 'SubscriptionFormEnd', FieldsRef => \%fields,
+%     SubscriptionObj => $SubscriptionObj, DashboardObj => $Dashboard );
 </table>
 </&>
 </td>
@@ -216,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) {
@@ -230,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}) {

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


More information about the rt-commit mailing list