Closed Bug 312876 Opened 19 years ago Closed 18 years ago

Make new products non-selectable until they have components.

Categories

(Bugzilla :: Query/Bug List, enhancement)

2.21
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: bugreport, Assigned: spam)

References

Details

Attachments

(1 file)

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.
This must only effect query forms and the like, not admin pages.
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.
Attached patch patch for tipSplinter Review
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+
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
Closed: 18 years ago
Component: Administration → Query/Bug List
Resolution: --- → FIXED
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.
Blocks: 370913
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: