Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: commit at wrong place

  • Loading branch information...
commit 5169437c2d921f9032536f2c5abf8cc944406493 1 parent f9b2f29
@eldy eldy authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 htdocs/projet/class/task.class.php
View
12 htdocs/projet/class/task.class.php
@@ -368,16 +368,14 @@ function delete($user, $notrigger=0)
}
else
{
- $this->db->commit();
-
$this->db->free($resql);
-
+
//Delete associated link file
if ($conf->projet->dir_output)
{
$projectstatic=new Project($this->db);
$projectstatic->fetch($this->fk_project);
-
+
$dir = $conf->projet->dir_output . "/" . dol_sanitizeFileName($projectstatic->ref) . '/' . dol_sanitizeFileName($this->id);
dol_syslog(get_class($this)."::delete dir=".$dir, LOG_DEBUG);
if (file_exists($dir))
@@ -392,8 +390,10 @@ function delete($user, $notrigger=0)
}
}
}
-
- return 1;
+
+ $this->db->commit();
+
+ return 1;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.