Fix: pour l'envoi de document par mail on fixe la date prévue à la date d'envoi afin de ne pas avoir des 1970 dans la liste des actions
correction à valider
This commit is contained in:
parent
d2eaf069d7
commit
6efd1ba0d3
@ -84,6 +84,13 @@ class ActionComm
|
|||||||
if (! $this->percent) $this->percent = 0;
|
if (! $this->percent) $this->percent = 0;
|
||||||
if (! $this->priority) $this->priority = 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 = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm";
|
||||||
$sql.= "(datec,";
|
$sql.= "(datec,";
|
||||||
if ($this->datep) $sql.= "datep,";
|
if ($this->datep) $sql.= "datep,";
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2005-2007 Regis Houssin <regis.houssin@cap-networks.com>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user