View Issue Details

IDProjectCategoryView StatusLast Update
0012467mantisbtcustomizationpublic2017-02-17 02:44
ReporterbruzzlerAssigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Product Version1.2.3 
Target VersionFixed in Version 
Summary0012467: Making the due_date mandatory/required when adding a report
Description

Hi,
is there a way to make the due_date required, when adding a bug?
Thanks
André

TagsNo tags attached.

Relationships

has duplicate 0022391 closedatrol DUE DATE must be 

Activities

cas

cas

2010-10-21 04:52

reporter   ~0027107

I have made a small adjustment whereby the duedate is automatically filled with todays date + a configurable number of days.
For now this setting is installation wide, thinking about making this project/category depending (as we had in older versions).
Should be a plugin though so may take some time.
I can post the above mentioned changes upon request

bruzzler

bruzzler

2010-10-21 04:56

reporter   ~0027108

yes, that would work for me right now, please post your way.
Thanks a lot

cas

cas

2010-10-21 08:01

reporter   ~0027110

Last edited: 2010-10-21 08:02

View 2 revisions

First of all you need to make a setting in config.inc.php (required):
############################

Due date handling

############################
$g_preset_duedate = ON;
$g_preset_duedate_days = 15;

Clearly you can change the number of days to a number of your liking.

Next one change in bug_report_page.php.
Around line 118 it says:
if ( $f_due_date == '' ) {
$f_due_date = date_get_null();
}

Change this to:
if ( $f_due_date == '' ) {
// CN-8 Begin
// $f_due_date = date_get_null();
if ( ON==config_get( 'preset_duedate')) {
$f_due_date = time()+ (config_get('preset_duedate_days') 24 60 * 60);
} else{
$f_due_date = date_get_null();
}
// CN-8 End
}

That should be all.

bruzzler

bruzzler

2010-10-21 09:32

reporter   ~0027111

thanks, worked like a charm!

cas

cas

2010-10-21 10:27

reporter   ~0027112

Could this make it into core?

bruzzler

bruzzler

2010-10-21 10:38

reporter   ~0027113

i think so, although I'd prefer the plugin solution as required field

yalino

yalino

2017-02-16 10:51

reporter   ~0055702

i change it and now HTTP Error 500
my mantis version 2.1.0

cas

cas

2017-02-17 02:41

reporter   ~0055711

Please do not use this anymore, use the plugin which is also availabe for mantis 2.x

cas

cas

2017-02-17 02:44

reporter   ~0055712

Attached latest vesrion of the Duedate plugin (only for Mantis version 2.x



SetDuedate.402.zip (7,428 bytes)

Issue History

Date Modified Username Field Change
2010-10-21 04:19 bruzzler New Issue
2010-10-21 04:52 cas Note Added: 0027107
2010-10-21 04:56 bruzzler Note Added: 0027108
2010-10-21 08:01 cas Note Added: 0027110
2010-10-21 08:02 cas Note Edited: 0027110 View Revisions
2010-10-21 09:32 bruzzler Note Added: 0027111
2010-10-21 10:27 cas Note Added: 0027112
2010-10-21 10:38 bruzzler Note Added: 0027113
2017-02-16 10:37 atrol Relationship added has duplicate 0022391
2017-02-16 10:51 yalino Note Added: 0055702
2017-02-17 02:41 cas Note Added: 0055711
2017-02-17 02:44 cas File Added: SetDuedate.402.zip
2017-02-17 02:44 cas Note Added: 0055712