Fix: Gnration des rapports d'actions
This commit is contained in:
parent
5d23ac75e3
commit
950d3ad4ec
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* 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
|
||||
* 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))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user