Menu

#20 Add Due Date for Bugs

open
nobody
None
5
2003-03-18
2003-03-18
Jeff A
No

Below are the changes I made to phpBugTracker (version
.91, I believe) to add my own feature request #703316.
Attached is a zip file containing the altered scripts
and templates.

I apologize if the zip file format is not quite
acceptable. If there is a preferred submission format,
just let me know.

DATABASE MODIFICATION:
ALTER TABLE `phpbt_bug` ADD `due_date` BIGINT( 20 )
UNSIGNED DEFAULT '0' NOT NULL AFTER `browser_string` ;

SCRIPT AND TEMPLATE MODIFICATIONS:
bug.php v 1.120
modified update_bug function - test and update
due_date field
modified do_changedfields function - added due_date
to list of text fields checked
modified do_form function - insert due_date when
adding new bugs

include.php v 1.125
modified $all_db_fields array to include due_date

query.php v 1.90
modified $coltype switch; added case 'due_date'
modified $query_db_fields array to include due_date
modified $db_headers array to include due_date

languages/en.php v 1.31.2.1
added "'DueDate' => 'Due Date'," to the
$STRINGS['BUGDISPLAY'] array
added "'DueDate' => 'Due Date'," to the
$STRINGS['BUGFORM'] array
!!! I did not add this string to other languages !!!

templates/default/bugemail.txt
added due_date to update email text

templates/default/bughistory.txt
format due date

templates/default/bugdisplay.html
added table row for due date text box

templates/default/bugform.html
added due_date to the default add bug form

NOTES:
this implementation requires that the DATE_FORMAT
setting in the configuration be set to something that
the strtotime() php function can handle, or wierd
things will happen.

Discussion

  • Jeff A

    Jeff A - 2003-03-18

    Changes for Due Date

     
  • Flohack

    Flohack - 2007-02-06

    Logged In: YES
    user_id=304752
    Originator: NO

    This patch is quite useful, however it is not compatible with the latest release, is there anybody out there who would fix this?

    FL

     

Log in to post a comment.