Backup and open ./include/class.ticket.php.
Find (CTRL+F) function reopen(.
Replace:
$sql= 'UPDATE '.TICKET_TABLE.' SET status='.db_input('open').',isanswered=0,updated=NOW(),reopened=NOW() WHERE ticket_id='.db_input($this->getId());
With (added 'closed=NULL' to update statement):
$sql= 'UPDATE '.TICKET_TABLE.' SET status='.db_input('open').',isanswered=0,closed=NULL,updated=NOW(),reopened=NOW() WHERE ticket_id='.db_input($this->getId());
reopen should then look like this:
function reopen($isanswered=0){
global $thisuser;
$sql= 'UPDATE '.TICKET_TABLE.' SET status='.db_input('open').',isanswered=0,closed=NULL,updated=NOW(),reopened=NOW() WHERE ticket_id='.db_input($this->getId());
return (db_query($sql) && db_affected_rows())?true;
}