diff options
author | sunnavy <sunnavy@bestpractical.com> | 2022-04-07 00:26:03 +0300 |
---|---|---|
committer | sunnavy <sunnavy@bestpractical.com> | 2022-04-07 00:41:08 +0300 |
commit | d4271148f422ac932a8303011bf57098a68771c7 (patch) | |
tree | 6fe668577bd0e369be23926a65c3c72beac06918 | |
parent | 111cd7b2c458556a6aded633503643f0d1c87ec7 (diff) |
Pass user object to ShowUser* elements4.4/pass-user-object-to-show-user
RT::CurrentUser inherits from RT::User, but it lacks a few dynamic field
methods like NickName, Organization, etc. If customized user formats use
these fields, dashboard subscription page would error out:
RT::CurrentUser::Organization Unimplemented in RT::User
-rw-r--r-- | share/html/Dashboards/Elements/SubscriptionRecipients | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/html/Dashboards/Elements/SubscriptionRecipients b/share/html/Dashboards/Elements/SubscriptionRecipients index 4a4f56827b..9b7c6bba68 100644 --- a/share/html/Dashboards/Elements/SubscriptionRecipients +++ b/share/html/Dashboards/Elements/SubscriptionRecipients @@ -172,11 +172,11 @@ if ($GroupString) { % if ( $session{CurrentUser}->HasRight( Right => 'AdminUsers', Object => $RT::System ) && % $session{CurrentUser}->HasRight( Right => 'ShowConfigTab', Object =>$RT::System ) ) { <a href="<% RT->Config->Get('WebPath') %>/Admin/Users/Modify.html?id=<% $current_user_id %>"> -<& /Elements/ShowUser, User => $session{CurrentUser} &></a> +<& /Elements/ShowUser, User => $session{CurrentUser}->UserObj &></a> % } else { -<& /Elements/ShowUser, User => $session{CurrentUser} &> +<& /Elements/ShowUser, User => $session{CurrentUser}->UserObj &> % } -<& /Elements/ShowUserEmailFrequency, User => $session{CurrentUser} &> +<& /Elements/ShowUserEmailFrequency, User => $session{CurrentUser}->UserObj &> </li> % for my $user_id (@{ $recipients_users || [] }) { |