View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011586 | mantisbt | custom fields | public | 2010-03-01 15:30 | 2012-10-22 15:54 |
| Reporter | jmunro | Assigned To | dhx | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 1.2.0 | ||||
| Summary | 0011586: Application Error 0000401 when attempting to add a Custom Field | ||||
| Description | I am trying to create a Custom Field called "Jade Contact", but every time I click New Custom Field, I get an error 401. | ||||
| Additional Information | APPLICATION ERROR 0000401 Database query failed. Error received from database was #1364: Field 'default_value' doesn't have a default value for the query: INSERT INTO mantis_custom_field_table | ||||
| Tags | No tags attached. | ||||
|
Which database backend do you use? Which database version? The column is created with: default_value C(255) NOTNULL DEFAULT '' So I assume that if you don't specify a value for default_value on the INSERT statement, it'll just revert to being a blank string. |
|
|
I am using MySQL v5.1.32 How can i specify a default value? manage_custom_field_page.php only has one text box on it, for the name of the custom field to create... |
|
|
I can't see how the error you're describing would appear upon submitting the name of a custom field to add. The default value field is specified on the next page, after you've specified the name of the new field. Can anyone else reproduce this error (because I can't)? |
|
|
I have the exact same problem. If i type in a custom field name and push the button, then it gives the exact same warning as mentioned in this issue. I have administrator rights and have checked that i'm allowed to add custom fields. We're running mantis 1.2.0 on a Windows 2000 machine with MySQL as database. |
|
|
To fix this bug you need to open the table mantis_custom_field_table in MySQL Administrator and assign a default value to all VARCHAR fields. After this, you can create custom fields in Mantis Management again. |
|
|
This issue is not reproducible with the current version of MantisBT. We recommend that you upgrade to the latest stable version [1]; if after doing so the problem persists, do not hesitate to reopen the issue, with additional relevant information. [1] https://sourceforge.net/projects/mantisbt/files/mantis-stable/ |
|