Fix: Génération des rapports d'actions

This commit is contained in:
Laurent Destailleur 2006-08-26 00:55:46 +00:00
parent 5d23ac75e3
commit 950d3ad4ec
2 changed files with 4 additions and 5 deletions

View File

@ -19,7 +19,6 @@
* *
* $Id$ * $Id$
* $Source$ * $Source$
*
*/ */
/** /**
@ -57,13 +56,13 @@ if ($user->societe_id > 0)
if ($_GET["action"] == 'builddoc') if ($_GET["action"] == 'builddoc')
{ {
$cat = new CommActionRapport($db, $_GET["month"], $_GET["year"]); $cat = new CommActionRapport($db, $_GET["month"], $_GET["year"]);
$cat->generate($_GET["id"]); $result=$cat->generate($_GET["id"]);
} }
if ($action=='delete_action') if ($action=='delete_action')
{ {
$actioncomm = new ActionComm($db); $actioncomm = new ActionComm($db);
$actioncomm->delete($actionid); $result=$actioncomm->delete($actionid);
} }

View File

@ -1,6 +1,6 @@
<?php <?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -69,7 +69,7 @@ class CommActionRapport
global $user,$conf,$langs; global $user,$conf,$langs;
$dir = $conf->action->dir_temp."/"; $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)) if (! file_exists($dir))
{ {