Skip to content
Snippets Groups Projects
Commit 21f7271e authored by fmarcet's avatar fmarcet
Browse files

FIX: Not deleting contrats on element_element table

parent 3fea57f8
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
* Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2015 Ferran Marcet <fmarcet@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -861,6 +862,13 @@ class Contrat extends CommonObject
}
}
if (! $error)
{
// Delete linked object
$res = $this->deleteObjectLinked();
if ($res < 0) $error++;
}
if (! $error)
{
// Delete contratdet_log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment