View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0028618 | mantisbt | bugtracker | public | 2021-05-21 10:16 | 2023-10-14 12:28 |
Reporter | fjacquet@grizzlydev.com | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
OS | Windows | OS Version | 10 | ||
Product Version | 2.24.4 | ||||
Target Version | 2.25.8 | Fixed in Version | 2.25.8 | ||
Summary | 0028618: Category empty but required does not prevent form submission on Firefox Windows and Safari | ||||
Description | On the "Enter Issue Details" form, the "Category" select input is a required field. As such it has a However, when using Firefox on Windows and Safari browsers, the form can be submitted with no category selected resulting in an error telling the user he can go back using the browser "Back" button. But in this case, the form content is lost... The bug is due to the "empty" / "select" option having a The fix is the following:
Related issue: https://mantisbt.org/bugs/view.php?id=26686 | ||||
Steps To Reproduce | Use Firefox on Windows and Safari browsers and do not select a "Category". | ||||
Tags | No tags attached. | ||||
related to | 0026686 | closed | dregad | Make category on bug_report_page a required field when $g_allow_no_category = OFF; |
has duplicate | 0026152 | closed | atrol | submitting new issue: inconsequent handling of unfilled fields |
has duplicate | 0031881 | closed | atrol | Anomaly report: Category field |
has duplicate | 0032789 | closed | atrol | Detect empty fields before trying to post bug |
related to | 0029689 | closed | atrol | Summary field is lost when pressing back button after hitting an error when reporting an issue |
Considering how many times this issue has been reported, maybe the fix should be back-ported to 2.25 branch, @atrol what do you think ? |
|
@dregad as this is a simple one-line change, I was thinking exactly about the same when dealing with 0032789. |
|
Commit cherry-picked to master-2.25 branch, target and fixed in version updated. |
|
MantisBT: master 407d0fd9 2021-05-24 08:53 Details Diff |
Let browser handle required category field Proper empty default value on SELECT, lets the browser catch the error without actually submitting the form. Fixes 0028618 |
Affected Issues 0028618 |
|
mod - core/print_api.php | Diff File | ||
MantisBT: master-2.25 9128d261 2021-05-24 12:53 Details Diff |
Let browser handle required category field Proper empty default value on SELECT, lets the browser catch the error without actually submitting the form. Fixes 0028618 (cherry picked from commit 407d0fd9b3deed770b25595822bf8c296637b199) |
Affected Issues 0028618 |
|
mod - core/print_api.php | Diff File |