Closed
Bug 31295
Opened 25 years ago
Closed 24 years ago
"Votes" text box should be checkbox
Categories
(Bugzilla :: Bugzilla-General, defect, P3)
Tracking
()
VERIFIED
FIXED
Bugzilla 2.12
People
(Reporter: b.judd, Assigned: st.n)
References
Details
(Whiteboard: 2.12)
Attachments
(3 files)
(deleted),
text/plain
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
In the "My Votes" page, the "Votes" text box should be a checkbox, since after
the policy change you cannot vote more than once anyway
Comment 1•25 years ago
|
||
tara@tequilarista.org is the new owner of Bugzilla and Bonsai. (For details,
see my posting in netscape.public.mozilla.webtools,
news://news.mozilla.org/38F5D90D.F40E8C1A%40geocast.com .)
Assignee: terry → tara
Assignee | ||
Comment 3•25 years ago
|
||
I think for other components such as webtools there is still more than one
vote allowed, so for those components an option menu would certainly be
appropriate. (At least I have just seen somebody giving five votes to a
bug.)
I would like to vote for this bug, but I can't. See bug 41519.
Assignee | ||
Comment 4•24 years ago
|
||
I'm attaching a patch to showvotes.cgi which does the following:
- if the max number of allowed votes per bug is one, it offers a checkbox,
- if that number is less than ten, it offeres a selection,
- else the behaviour is unchanged (text input).
Additionally products without any votes tabulated are now omitted since
I don't find them very interesting and without them you maybe don't have to
scroll to see everything. But that's just a one-line change, you can leave
it out if you don't like it.
Unfortunately I can't test this since I don't have mySQL et al
installed. So can somebody please review and test this patch (and
maybe even check it in)? Thanks!
- Stephan.
Assignee | ||
Comment 5•24 years ago
|
||
Assignee | ||
Comment 6•24 years ago
|
||
I attached a patch two months ago. What should I do to get this checked in?
Isn't this the appropriate place here?
Comment 7•24 years ago
|
||
I think a selection of numbers is a bit much. I'd much prefer a textbox or a
checkbox.
Comment 8•24 years ago
|
||
I'm with Matt. I think the select box is a bit much. Post a new patch with just
the checkbox and the text box if you can.
Assignee | ||
Comment 10•24 years ago
|
||
Oops, I meant to reassign the bug to myself before accepting ...
Assignee: tara → st.n
Status: ASSIGNED → NEW
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 11•24 years ago
|
||
Assignee | ||
Comment 12•24 years ago
|
||
Attached is the modified patch without the selection. Now you get either a
checkbox or a text input.
Please review and test. Again, I can't test this because I don't have my own
Bugzilla installation, sorry.
Comment 14•24 years ago
|
||
This patch causes globals.pl to barf when showvotes.cgi is invoked:
SELECT products.product, products.maxvotesperbug FROM products: Table 'products'
was not locked with LOCK TABLES at globals.pl line 171
I'll try to dig into this a bit later, but if you could have a look at it it
would more likely make the 2.12 cut.
Assignee | ||
Comment 15•24 years ago
|
||
Assignee | ||
Comment 16•24 years ago
|
||
Okay, I didn't know I have to lock a table before trying to read from it.
Now I changed SendSQL("lock tables bugs read, votes write");
to SendSQL("lock tables bugs read, products read, votes write");
which should fix this.
Please test again. Thanks!
Comment 17•24 years ago
|
||
I now have patched my personal copy of BugZilla 2.11 (cvs pull from yesterday)
with this patch, and it's working quite well.
I think this is the right way to do this, looks nice!
Comment 18•24 years ago
|
||
r= dave@intrec.com
installed on my test system, works as advertised.
Comment 19•24 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 20•24 years ago
|
||
I look forward to seeing it in action here.
Comment 21•24 years ago
|
||
*** Bug 69754 has been marked as a duplicate of this bug. ***
Comment 22•24 years ago
|
||
Sorry for the spam, but I needed to be able to query for all of these correctly.
Target Milestone: --- → Bugzilla 2.12
Comment 23•24 years ago
|
||
Can't verify, as no "One vote only" components on landfill. Either that, or this
doesn't work. :-)
Gerv
Comment 24•24 years ago
|
||
Verified, this is present on the Mozilla products on mozilla.org.
Status: RESOLVED → VERIFIED
Comment 25•23 years ago
|
||
Moving closed bugs to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: other → unspecified
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•