Closed Bug 315451 Opened 19 years ago Closed 13 years ago

User List should have "don't show disabled users" option

Categories

(Bugzilla :: Administration, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: jhg, Assigned: timello)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

The user list page editusers.cgi?action=list would benefit greatly
from a "don't show disabled users" checkbox so that one could work
with only current users in the list when desired.

Reproducible: Always

Steps to Reproduce:
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: user-accounts → administration
Component: User Accounts → Administration
Attached patch v1 (obsolete) — Splinter Review
A checkbox for "enabled users only" that was checked by default.
Assignee: administration → timello
Status: NEW → ASSIGNED
Attachment #562908 - Flags: review?(glob)
Comment on attachment 562908 [details] [diff] [review]
v1

r=glob with the following fixed on commit:

>+  <input type="checkbox" name="enabledonly" value="1" id="enabledonly" checked />

we don't serve xhtml, you don't need to close the input element.
Attachment #562908 - Flags: review?(glob) → review+
Flags: approval?
Comment on attachment 562908 [details] [diff] [review]
v1

>=== modified file 'editusers.cgi'

>+        if ($enabled_only eq '1') {
>+            $query .= " $nextCondition profiles.is_enabled = 1 ";
>+        }

Please set nextCondition = 'AND' if this code is triggered, in case future code is added. This was not needed for |if ($grouprestrict eq '1')| only because this check was already done earlier in the code.



>=== modified file 'template/en/default/admin/users/search.html.tmpl'

>+  <input type="checkbox" name="enabledonly" value="1" id="enabledonly" checked />

enabled_only would be more readable + what glob said about XHTML.


>+  <label for="enabledonly">Enabled users only</label>

"Enabled user accounts only" would be more accurate.
Attached patch v2Splinter Review
Attachment #562908 - Attachment is obsolete: true
Attachment #563121 - Flags: review?(LpSolit)
Attachment #563121 - Flags: review?(LpSolit) → review?(glob)
Comment on attachment 563121 [details] [diff] [review]
v2

r=glob :)
Attachment #563121 - Flags: review?(glob) → review+
Comment on attachment 563121 [details] [diff] [review]
v2

>=== modified file 'template/en/default/admin/users/search.html.tmpl'

>+  <input type="checkbox" name="enabled_only" value="1" id="enabled_only" checked>

On checkin, please write checked="checked" (as we do elsewhere in the code).
Flags: approval? → approval+
Target Milestone: --- → Bugzilla 5.0
Committing to: bzr+ssh://timello%40gmail.com@bzr.mozilla.org/bugzilla/trunk/                                                                                                           
modified editusers.cgi
modified template/en/default/admin/users/search.html.tmpl
Committed revision 7970.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Keywords: relnote
Added to relnotes for 4.4.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: