View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016869||mantisbt||bugtracker||public||2014-01-22 12:28||2019-09-26 09:20|
|Priority||low||Severity||feature||Reproducibility||have not tried|
|Summary||0016869: Change of due date background color|
I was wondering if it is possible to add another background color for the ticket's field "DUE DATE". Right now if due date has been reached, the field becomes red. That's fine, but maybe somebody would know how to add another color, let's say orange or yellow, when there are 2 days till due date. It should work as a reminder when I am directly looking on the list of unassigned tickets.
Could please someone help me in this case? Thanks in advance!
|Tags||No tags attached.|
Currently the system does not allow "intermediate" states for due date, it's either OK or past the date (red). Introducing another color like you suggest would also require a parameter to define the thresholds.
As a side note, you can change the color by tweaking the CSS (td.overdue).
Thank you for the answer. How shall I proceed with creating new parameter to define the new threshold?
Very much wanted this new potential feature.
Found a neat solution. Testes in version 2.21.1
*Add 2 lines in your config_inc.php file;
*Add two lines in file 'default.css' under 'td.overdue ' near line 95;
*Create two new functions (under function bug_is_overdue) in file /core/bug_api.php;
*Replace function print_column_due_date (near bottom file) in file /core/columns_api.php with;
*Replace function print_column_overdue (bottom file) in file /core/columns_api.php with if you also want to change the 'overdue' column;
*Add two lines in bug_view_inc.php under line 184 't_bug_overdue';
*And replace the #Due Date in file bug_view_inc.php;
EDIT (dregad) markdown formatting
@MPAA to make your changes easier to apply, I would suggest to provide them as a patch, ideally using
I've did some magic, at least for me. My first Github project. Hope this helps.
Thanks. It's better, but still that's not really what I meant... Sorry if I was not clear.
What you should do is
|2014-01-22 12:28||Hyper||New Issue|
|2014-01-22 12:36||dregad||Note Added: 0039140|
|2014-01-22 12:36||dregad||Priority||normal => low|
|2014-01-22 12:36||dregad||Severity||minor => feature|
|2014-01-22 12:36||dregad||Status||new => acknowledged|
|2014-01-22 12:36||dregad||Category||customization => bugtracker|
|2014-01-23 06:27||Hyper||Note Added: 0039149|
|2016-08-24 21:16||vboctor||Relationship added||related to 0021642|
|2017-01-04 04:42||dregad||Relationship added||related to 0009155|
|2019-09-19 03:03||MPAA||Note Added: 0062865|
|2019-09-25 14:11||MPAA||Note Added: 0062908|
|2019-09-25 14:27||MPAA||Note Edited: 0062908||View Revisions|
|2019-09-25 14:28||MPAA||Note Edited: 0062908||View Revisions|
|2019-09-26 04:02||MPAA||Note Added: 0062910|
|2019-09-26 04:02||MPAA||File Added: Schermafbeelding 2019-09-26 om 10.01.59.png|
|2019-09-26 05:14||dregad||Note Added: 0062911|
|2019-09-26 05:18||dregad||Note Edited: 0062908||View Revisions|
|2019-09-26 06:52||MPAA||Note Added: 0062912|
|2019-09-26 06:52||MPAA||File Added: Schermafbeelding 2019-09-26 om 10.01.59-2.png|
|2019-09-26 07:08||MPAA||Note Edited: 0062908||View Revisions|
|2019-09-26 09:20||dregad||Note Added: 0062915|
|2019-09-26 09:22||dregad||File Deleted: Schermafbeelding 2019-09-26 om 10.01.59-2.png|