Skip to content
Snippets Groups Projects
Commit c7170011 authored by Peter Rotich's avatar Peter Rotich
Browse files

oops: bug fix

parent 397e184d
Branches
Tags
No related merge requests found
...@@ -536,11 +536,10 @@ class Ticket { ...@@ -536,11 +536,10 @@ class Ticket {
// fallback if the logic in ::setStatus fails. // fallback if the logic in ::setStatus fails.
function setStatusId($id) { function setStatusId($id) {
$sql = 'UPDATE '.TICKET_TABLE.' SET updated=NOW() '. $sql = 'UPDATE '.TICKET_TABLE.' SET updated=NOW() '.
' ,status_id='.db_input($status->getId()) . ' ,status_id='.db_input($id) .
' WHERE ticket_id='.db_input($this->getId()); ' WHERE ticket_id='.db_input($this->getId());
if (!db_query($sql) || !db_affected_rows()) return (db_query($sql) && db_affected_rows());
return false;
} }
function getStatus() { function getStatus() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment