Make new products non-selectable until they have components.

RESOLVED FIXED in Bugzilla 3.0

Status

()

Bugzilla
Query/Bug List
--
enhancement
RESOLVED FIXED
13 years ago
12 years ago

People

(Reporter: Joel Peshkin, Assigned: victory <never@receive.bug.mails.i.hate.spammer>)

Tracking

2.21
Bugzilla 3.0
Bug Flags:
approval +

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
Currently, a new product appears on Search pages from the moment it is created
until it has group restrictions.   It should not appear until it has components.
(Reporter)

Comment 1

13 years ago
This must only effect query forms and the like, not admin pages.

Comment 2

13 years ago
We could imagine something comparable to User::get_enterable_products(), i.e.
products with no component nor version cannot have bugs, and so you cannot do
anything with these products until they have at least one component and version.
OK, makes sense.
Created attachment 235910 [details] [diff] [review]
patch for tip

this doesn't mention old charts ;-p
Attachment #235910 - Flags: review?
Attachment #235910 - Flags: review? → review+
Assignee: administration → bmo2007
Flags: approval?
Target Milestone: --- → Bugzilla 3.0
Flags: approval? → approval+

Comment 4

12 years ago
Checking in template/en/default/search/form.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/search/form.html.tmpl,v  <--  form.html.tmpl
new revision: 1.44; previous revision: 1.43
done
Checking in template/en/default/search/search-specific.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/search/search-specific.html.tmpl,v  <--  search-specific.html.tmpl
new revision: 1.18; previous revision: 1.17
done
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Component: Administration → Query/Bug List
Resolution: --- → FIXED

Comment 5

12 years ago
Unless I'm completely blind, this patch is missing some parts, such as in search-specific.html.tmpl when classifications are not in use:

          [% FOREACH p = product %]
            <option value="[% p.name FILTER html %]"
              [% " selected" IF lsearch(default.product, p.name) != -1 %]>
              [% p.name FILTER html %]
            </option>
          [% END %]
Oh. Your vision is all right, Frédéric. I'll review a corresponding patch.

Updated

12 years ago
Blocks: 370913
You need to log in before you can comment on or make changes to this bug.