It should not be possible to set a bug field to an inactive value

RESOLVED DUPLICATE of bug 643264

Status

()

Bugzilla
Creating/Changing Bugs
RESOLVED DUPLICATE of bug 643264
6 years ago
5 years ago

People

(Reporter: Frédéric Buclin, Unassigned)

Tracking

Details

(Reporter)

Description

6 years ago
Currently, inactive field values are not displayed in the UI, but you can still hack the URL to use them. I don't think this behavior is intentional, and we should enforce this in the backend code.

I'm pretty sure the code is full of such problems, as Bugzilla::Field::get_legal_field_values() returns active values only, but Bugzilla::Field->legal_values() returns all values, including inactive ones. get_legal_field_values() should be merged with legal_values() which would return active values only, unless {all => 1} is set. See also bug 456743 comment 32.
(Reporter)

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 643264
You need to log in before you can comment on or make changes to this bug.