updated / lastchange does not update after reply

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

updated / lastchange does not update after reply

Post 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;
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: updated / lastchange does not update after reply

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: updated / lastchange does not update after reply

Post 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.
Post Reply