[Rt-commit] rt branch 5.0/hide-empty-custom-role-fields created. rt-5.0.2-29-g77abfa9e1c

BPS Git Server git at git.bestpractical.com
Tue Nov 2 21:31:23 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/hide-empty-custom-role-fields has been created
        at  77abfa9e1c8eccc900dab637adecb9afecd0e95a (commit)

- Log -----------------------------------------------------------------
commit 77abfa9e1c8eccc900dab637adecb9afecd0e95a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Nov 3 05:08:10 2021 +0800

    Support to hide empty custom roles on ticket display page

diff --git a/share/html/Ticket/Elements/ShowPeople b/share/html/Ticket/Elements/ShowPeople
index c59da90731..7a7a8fb9e9 100644
--- a/share/html/Ticket/Elements/ShowPeople
+++ b/share/html/Ticket/Elements/ShowPeople
@@ -97,7 +97,7 @@
 
 % $m->callback( CustomRoles => $multi_roles, SingleRoles => 0, Ticket => $Ticket, %ARGS, CallbackName => 'ModifyCustomRoles' );
 % while (my $role = $multi_roles->Next) {
-  <div class="form-row">
+  <div class="form-row<% $Ticket->RoleGroup($role->GroupType)->MembersObj->Count ? q{} : q{ unset-field} %>">
     <div class="label col-3"><% $role->Name %>:</div>
     <div class="value col-9"><span class="current-value"><& ShowGroupMembers, Group => $Ticket->RoleGroup($role->GroupType), Ticket => $Ticket &></span></div>
   </div>

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list