Page 1 of 1

updated / lastchange does not update after reply

Posted: Mon Sep 03, 2012 8:08 pm
by dr_patso
I think I've messed up the "updated" field in the ticket list when i removed it's functionality in mysql so I could migrate time spent to the new field.

basically, it doesn't change when I make a reply...

here is the structure of the "lastchange" field in the database. I have modified hesk to keep status of "in progress" upon reply if that helps.

Image

and the change I made in admin_reply_ticket.php to keep the status of in progress.

Code: Select all

/* Update the original ticket */
$new_status = empty($_POST['close']) ? 4 : 3;

Re: updated / lastchange does not update after reply

Posted: Tue Sep 04, 2012 2:36 pm
by Klemen
Your attributes look fine. I would recommend downloading original 2.4.1 files again (not 2.4 RC/BETA) and uploading fresh copies of these two to the server:
- admin/admin_ticket.php
- admin/admin_reply_ticket.php

Re: updated / lastchange does not update after reply

Posted: Tue Sep 04, 2012 6:06 pm
by dr_patso
ah, okay it is something to do with this, my tickets are all already "in progress" upon creation.

i change the 2 to 4

Code: Select all

/* Update the original ticket */
$new_status = empty($_POST['close']) ? 4 : 3;
unless the status is changed from what it was, the row in the database is not updated and so the updated field does not change...

The same issue happen if you reply to the ticket a second time with the default settings...

Since we are manually adding in the replies and not piping need to find someway of updating the ticket.