Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed first/last dates bug

  • Loading branch information...
commit 580c0ab58ecfb6891079474268ed4d8a4099597e 1 parent 60e79da
@davidecassenti authored
Showing with 7 additions and 4 deletions.
  1. +5 −2 api/util.php
  2. +2 −2 plugin.xml
View
7 api/util.php
@@ -59,8 +59,9 @@ function getTicketSLAInfo($ticket_id) {
new DevblocksSearchCriteria(SearchFields_TicketAuditLog::CHANGE_VALUE, DevblocksSearchCriteria::OPER_EQ, 'W')
),
1,
+ 0,
SearchFields_TicketAuditLog::CHANGE_DATE,
- false);
+ true);
list ($key, $ticket_first_reply) = each($ticket_first_reply);
list ($key, $ticket_first_reply) = each($ticket_first_reply);
@@ -76,8 +77,9 @@ function getTicketSLAInfo($ticket_id) {
new DevblocksSearchCriteria(SearchFields_TicketAuditLog::CHANGE_VALUE, DevblocksSearchCriteria::OPER_EQ, 'W')
),
1,
+ 0,
SearchFields_TicketAuditLog::CHANGE_DATE,
- true);
+ false);
list ($key, $ticket_last_reply) = each($ticket_last_reply);
list ($key, $ticket_last_reply) = each($ticket_last_reply);
@@ -95,6 +97,7 @@ function getTicketSLAInfo($ticket_id) {
new DevblocksSearchCriteria(SearchFields_TicketAuditLog::CHANGE_VALUE, DevblocksSearchCriteria::OPER_EQ, 1)
),
1,
+ 0,
SearchFields_TicketAuditLog::CHANGE_DATE,
false);
list ($key, $ticket_closed_log) = each($ticket_closed_log);
View
4 plugin.xml
@@ -2,9 +2,9 @@
<plugin>
<id>net.pixelinstrument.sla</id>
<name>[PI] Tickets SLA Management</name>
- <description>Manage calculation of SLA dates for tickets Version 1.4.1</description>
+ <description>Manage calculation of SLA dates for tickets Version 1.4.2</description>
<author>Davide Cassenti</author>
- <revision>1.4.1</revision>
+ <revision>1.4.2</revision>
<link>http://www.pixelinstrument.net</link>
<image>plugin.png</image>
Please sign in to comment.
Something went wrong with that request. Please try again.