Skip to content
Snippets Groups Projects
Commit b4303470 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix do not update instance status if method used to update other element

parent 3ff8a49e
No related branches found
No related tags found
No related merge requests found
...@@ -2754,7 +2754,11 @@ abstract class CommonObject ...@@ -2754,7 +2754,11 @@ abstract class CommonObject
if (! $error) if (! $error)
{ {
$this->db->commit(); $this->db->commit();
if (empty($elementId)) // If the element we update was $this (so $elementId is null)
{
$this->statut = $status; $this->statut = $status;
$this->status = $status;
}
return 1; return 1;
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment