From 6efd1ba0d33be758f4f34ccf64699f31064dc32c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 31 Mar 2007 17:34:56 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20pour=20l'envoi=20de=20document=20par=20m?= =?UTF-8?q?ail=20on=20fixe=20la=20date=20pr=E9vue=20=E0=20la=20date=20d'en?= =?UTF-8?q?voi=20afin=20de=20ne=20pas=20avoir=20des=201970=20dans=20la=20l?= =?UTF-8?q?iste=20des=20actions=20correction=20=E0=20valider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/actioncomm.class.php | 7 +++++++ htdocs/comm/action/index.php | 1 + 2 files changed, 8 insertions(+) diff --git a/htdocs/actioncomm.class.php b/htdocs/actioncomm.class.php index 74f6cae1585..2ed2b6d030f 100644 --- a/htdocs/actioncomm.class.php +++ b/htdocs/actioncomm.class.php @@ -83,6 +83,13 @@ class ActionComm if (! $this->percent) $this->percent = 0; if (! $this->priority) $this->priority = 0; + + // Régis: Si c'est un envoi de document par mail on met la date prévue à la date d'envoi (à valider) + // afin de ne pas avoir des 1970 dans la liste des actions + if ($this->type_id == 3 || $this->type_id == 8 || $this->type_id == 9 || $this->type_id == 10) + { + $this->datep = $this->date; + } $sql = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm"; $sql.= "(datec,"; diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index ee81d65dd7a..888a4a75a21 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -2,6 +2,7 @@ /* Copyright (C) 2001-2004 Rodolphe Quiedeville * Copyright (C) 2003 Éric Seigne * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * 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