Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt
Commits
5a51e2ac
Commit
5a51e2ac
authored
Sep 02, 2014
by
Christian Loos
Browse files
add overdue class only if ticket status is active
This makes Due on ticket display consistent with ticket lists (collections).
parent
aa1bd18b
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/html/Ticket/Elements/ShowDates
View file @
5a51e2ac
...
...
@@ -65,7 +65,7 @@
<tr class="date due">
<td class="label"><&|/l&>Due</&>:</td>\
% my $due = $Ticket->DueObj;
% if ( $due && $due->IsSet && $due->Diff < 0 ) {
% if ( $due && $due->IsSet && $due->Diff < 0
&& $Ticket->QueueObj->IsActiveStatus($Ticket->Status)
) {
<td class="value"><span class="overdue"><% $due->AsString %></span></td>
% } else {
<td class="value"><% $due->AsString %></td>
...
...
share/html/m/ticket/show
View file @
5a51e2ac
...
...
@@ -365,7 +365,7 @@ my $print_value = sub {
<div class="entry">
<div class="label date due"><&|/l&>Due</&>:</div>
% my $due = $Ticket->DueObj;
% if ( $due && $due->IsSet && $due->Diff < 0 ) {
% if ( $due && $due->IsSet && $due->Diff < 0
&& $Ticket->QueueObj->IsActiveStatus($Ticket->Status)
) {
<div class="value date due"><span class="overdue"><% $due->AsString %></span></div>
% } else {
<div class="value date due"><% $due->AsString %></div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment