[Rt-commit] rt branch, 4.2/user-format-role, created. rt-4.2.6-179-g13a1e4a

Alex Vandiver alexmv at bestpractical.com
Tue Sep 9 16:12:24 EDT 2014


The branch, 4.2/user-format-role has been created
        at  13a1e4a707b407cf8cc682e1dd136888dee47eb7 (commit)

- Log -----------------------------------------------------------------
commit 13a1e4a707b407cf8cc682e1dd136888dee47eb7
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Sep 9 16:08:39 2014 -0400

    Add the "role" option to the preferences list
    
    b12af0df added a new "role" user formatter; however, it neglected to add
    it to the list of user formatters in RT::Config.  This means that if the
    system default was changed to not be "role", users cannot switch back to
    it.
    
    Add the missing "role" as a possible preference for UsernameFormat.

diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 4329fdb..ecc913f 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -179,8 +179,9 @@ our %META;
         Widget          => '/Widgets/Form/Select',
         WidgetArguments => {
             Description => 'Username format', # loc
-            Values      => [qw(concise verbose)],
+            Values      => [qw(role concise verbose)],
             ValuesLabel => {
+                role    => 'Verbose unprivileged, short privileged', # loc
                 concise => 'Short usernames', # loc
                 verbose => 'Name and email address', # loc
             },

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


More information about the rt-commit mailing list