Merge pull request #12592 from frederic34/patch-6
The variable $error seems to be never defined
This commit is contained in:
commit
e47edb2c98
@ -1368,6 +1368,8 @@ class Ticket extends CommonObject
|
|||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
|
$error = 0;
|
||||||
|
|
||||||
if ($this->statut != self::STATUS_CANCELED) { // no closed
|
if ($this->statut != self::STATUS_CANCELED) { // no closed
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
@ -1420,6 +1422,7 @@ class Ticket extends CommonObject
|
|||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
|
$error = 0;
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
$this->oldcopy = dol_clone($this);
|
$this->oldcopy = dol_clone($this);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user