View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010670 | mantisbt | custom fields | public | 2009-07-02 05:44 | 2010-02-22 14:35 |
Reporter | Dagan | Assigned To | vboctor | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | WINDOWS | OS | 2003 SERVER | ||
Product Version | 1.1.8 | ||||
Fixed in Version | 1.2.0 | ||||
Summary | 0010670: Custom fields required do not work | ||||
Description | We create different custom fields with the Required option (for example for Registering) and when we register an issue and leave the field empty, mantis do not show and advise and lets save the issue. | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
has duplicate | 0011057 | closed | vboctor | Failed to validate required custom fields |
has duplicate | 0010805 | closed | vboctor | Required on Close is ignored |
has duplicate | 0005301 | closed | vboctor | Custom field of type 'list' not required when expected |
has duplicate | 0008082 | closed | vboctor | Required custom fields seems not working |
has duplicate | 0011568 | closed | dhx | Custom fields marked as mandatory are not mandatory ... |
I have the same problem with Mantis on my project. |
|
I think I have find out why is happening. There are two problems:
In the 96 line, after this IF: if ( $t_def['require_report'] && !gpc_isset_custom_field( $t_id, $t_def['type'] ) ) { I don't know if this is php correct code (is the first time in my life I work with this language), but works :D. |
|
Thanks for suggestion. |
|
You have to add it in:
|
|
Thank's Dagan. It's working but only if I register new bug (problem). What I must do that this solution work during Resolve problem and Close. I have require fields too in this status. |
|
I am seeing the same issue here with 1.1.8. It doesn't seem possible to use "required field" with Enumerations. |
|
I have two custom fields in my project, one to be entered by reporter (reports/updates issues), and the other entered by the developer (resolves/closes issues) I have set required for Report & update for 1st, and Required for Resolved & Closed for the other. However, when the user is reporting the issue, its validating the required for resolved fields as well. I am using Mantis: 1.1.8 As reported earlier, I have to force validation by setting min. field length to 1 |
|
still the same in 1.2.0rc2 |
|
I have the same problem in 1.2.0-RC1. We are running on linux, apache in combi with MySQL 5. |
|
MantisBT: master-1.2.x dfbe8b56 2010-01-20 23:06 Details Diff |
Fixes 0010670: Custom fields required do not work. |
Affected Issues 0010670 |
|
mod - core/cfdefs/cfdef_standard.php | Diff File | ||
mod - core/gpc_api.php | Diff File | ||
MantisBT: master e45c8298 2010-01-20 23:06 Details Diff |
Fixes 0010670: Custom fields required do not work. |
Affected Issues 0010670 |
|
mod - core/cfdefs/cfdef_standard.php | Diff File | ||
mod - core/gpc_api.php | Diff File |