From 950d3ad4eca88e58fee840be8b0bf86278e60422 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 26 Aug 2006 00:55:46 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20G=E9n=E9ration=20des=20rapports=20d'acti?= =?UTF-8?q?ons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/action/rapport/index.php | 5 ++--- htdocs/comm/action/rapport/rapport.pdf.php | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/action/rapport/index.php b/htdocs/comm/action/rapport/index.php index a3af5495c2b..c613b0e4ef5 100644 --- a/htdocs/comm/action/rapport/index.php +++ b/htdocs/comm/action/rapport/index.php @@ -19,7 +19,6 @@ * * $Id$ * $Source$ - * */ /** @@ -57,13 +56,13 @@ if ($user->societe_id > 0) if ($_GET["action"] == 'builddoc') { $cat = new CommActionRapport($db, $_GET["month"], $_GET["year"]); - $cat->generate($_GET["id"]); + $result=$cat->generate($_GET["id"]); } if ($action=='delete_action') { $actioncomm = new ActionComm($db); - $actioncomm->delete($actionid); + $result=$actioncomm->delete($actionid); } diff --git a/htdocs/comm/action/rapport/rapport.pdf.php b/htdocs/comm/action/rapport/rapport.pdf.php index 2d5d485b1be..e77c5e1bb53 100644 --- a/htdocs/comm/action/rapport/rapport.pdf.php +++ b/htdocs/comm/action/rapport/rapport.pdf.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * * 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 @@ -69,7 +69,7 @@ class CommActionRapport global $user,$conf,$langs; $dir = $conf->action->dir_temp."/"; - $file = $dir . "/actions-".$this->month."-".$this->year.".pdf"; + $file = $dir . "actions-".$this->month."-".$this->year.".pdf"; if (! file_exists($dir)) {