Open
Bug 1130650
Opened 9 years ago
Updated 9 years ago
REST /field/bug resource returns incorrect values for is_mandatory
Categories
(Bugzilla :: WebService, defect)
Tracking
()
NEW
People
(Reporter: chris, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36 Steps to reproduce: When using /field/bug REST API to request all files on the https://landfill.bugzilla.org/bugzilla-tip test site the op_sys field is not marked as mandatory. However attempting to create a new bug without the op_sys field populated fails with the message: "You must select/enter a OS." Result of /field/bug: { "is_mandatory": false, "name": "op_sys", "values": [...] } It seems that the is_mandatory field is not set correctly for all fields which are mandatory.
Comment 1•9 years ago
|
||
You need to set defaultopsys to a value using editparams.cgi which will get rid of this error.
Reporter | ||
Comment 2•9 years ago
|
||
The bug I am reporting is that the /field/bug API returns "is_mandatory": false, but the field is actually mandatory. /field/bug should return "is_mandatory": true for this field (and the other mandatory fields).
Comment 3•9 years ago
|
||
Confirmed. is_mandatory remains false even when defaultopsys is null.
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in
before you can comment on or make changes to this bug.
Description
•