Skip to content

Commit

Permalink
Merge pull request #4251 from fmarcet/3.6
Browse files Browse the repository at this point in the history
FIX: Not deleting contracts on element_element table
  • Loading branch information
eldy committed Dec 18, 2015
2 parents 3d6f1d9 + 21f7271 commit 7af4d91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions htdocs/contrat/class/contrat.class.php
Expand Up @@ -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
Expand Down Expand Up @@ -861,6 +862,13 @@ function delete($user)
}
}

if (! $error)
{
// Delete linked object
$res = $this->deleteObjectLinked();
if ($res < 0) $error++;
}

if (! $error)
{
// Delete contratdet_log
Expand Down

0 comments on commit 7af4d91

Please sign in to comment.