fix update reason

This commit is contained in:
Marion Muszynski 2016-10-31 13:09:02 +01:00
parent c6ea6b27cf
commit 8e37d90b44

View File

@ -8,7 +8,7 @@ class Reason
public $contact = array();
public $title = array();
public $versions = array();
public function __construct($id=NULL)
{
if($id !== NULL) {
@ -105,7 +105,7 @@ class Reason
if($this->id !== null) {
Db::getInstance()->Execute('
UPDATE `'._DB_PREFIX_.'support_reason` SET
`id_contact` = '.(int) $this->id_contact.'
`id_contact` = '.(int) $this->id_contact.',
`visible` = '.(int) $this->visible.'
WHERE `id_reason` = '.(int) $this->id.'
');
@ -167,7 +167,7 @@ class Reason
}
public function insertReasonCustomerThread($id_thread) {
if(!($result = Db::getInstance()->ExecuteS('
SELECT *
FROM `'._DB_PREFIX_.'support_reason_customerthread`