[Rt-commit] rt branch 5.0/disabled-people-inline-edit created. rt-5.0.4-20-g54175593c2

BPS Git Server git at git.bestpractical.com
Tue May 30 05:22:40 UTC 2023


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/disabled-people-inline-edit has been created
        at  54175593c2e0d3587e3cd3a7d2868459a62d24d8 (commit)

- Log -----------------------------------------------------------------
commit 54175593c2e0d3587e3cd3a7d2868459a62d24d8
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue May 30 08:18:21 2023 +0300

    Show that a principal is disabled while editing people inline
    
    It's very surprising to see an user/group that was not there a moment ago.
    We don't show disabled in "view" mode.

diff --git a/share/html/Ticket/Elements/EditWatchers b/share/html/Ticket/Elements/EditWatchers
index 7767591c37..d73eaaa605 100644
--- a/share/html/Ticket/Elements/EditWatchers
+++ b/share/html/Ticket/Elements/EditWatchers
@@ -68,6 +68,10 @@
 % } else {
 <% $member->Name %>
 % } }
+
+% if ( $member->PrincipalObj->Disabled ) {
+<span class="text-muted">(<&|/l&>disabled</&>)</span>
+% }
     </label>
   </div>
 </li>

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list