View Issue Details

IDProjectCategoryView StatusLast Update
0012467mantisbtcustomizationpublic2019-01-07 09:13
Reporterbruzzler Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Product Version1.2.3 
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.
Attached Files

Relationships

related to 0020711 closedcommunity Support default due date for submitted issues 
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

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)
nicola.gentili

nicola.gentili

2019-01-07 07:07

reporter   ~0061155

dears all, is there setduedate plugin for mantisbt 1.3 ?

cas

cas

2019-01-07 08:53

reporter   ~0061156

Yes, there is one to be found here:
https://mantisbt.org/bugs/view.php?id=12522

atrol

atrol

2019-01-07 09:13

developer   ~0061157

For some use cases there is no need to install a plugin.
Starting from version 1.3.0-rc.2 0020711 there is option $g_due_date_default https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.config.duedate