Merge pull request #12592 from frederic34/patch-6

The variable $error seems to be never defined
This commit is contained in:
Laurent Destailleur 2019-12-03 13:17:18 +01:00 committed by GitHub
commit e47edb2c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1368,6 +1368,8 @@ class Ticket extends CommonObject
{
global $conf, $langs;
$error = 0;
if ($this->statut != self::STATUS_CANCELED) { // no closed
$this->db->begin();
@ -1420,6 +1422,7 @@ class Ticket extends CommonObject
{
global $conf, $langs;
$error = 0;
$this->db->begin();
$this->oldcopy = dol_clone($this);