View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012098 | mantisbt | customization | public | 2010-06-20 01:14 | 2014-02-14 09:16 |
| Reporter | phoenixcreation | Assigned To | atrol | ||
| Priority | normal | Severity | minor | Reproducibility | N/A |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.2.1 | ||||
| Summary | 0012098: Due Date Required | ||||
| Description | How do you go about making the due_date required? I've been playing with the base functions in bug_api.php but the job always goes through, even when blank. We've been using a required custom field, but the due date field works much better with this one exception. | ||||
| Tags | No tags attached. | ||||
|
Worked with a friend of mine and figured it out. For posterity: due_date is never actually blank, which is why the normal is_blank would not take. due_date defaults to 1. So in bug_api in the validate function:
For good measure, updated bug_report_page with the required * as well: <span class="required">*</span> Please close out as needed. |
|
|
Writing a custom validation function would also fix the issue without changing existing MantisBT code. |
|