Fix: Correct corrupted data

This commit is contained in:
Laurent Destailleur 2009-07-08 13:35:00 +00:00
parent 78fee24890
commit 451144e261
3 changed files with 10 additions and 6 deletions

View File

@ -109,7 +109,7 @@ llxHeader('','','EN:AgendaEn|FR:Agenda|ES:AgendaES');
$form=new Form($db);
//print $langs->trans("FeatureNotYetAvailable");
$now=gmmktime(0,0,0);
$now=dol_now('tzref');
$prev = dol_get_prev_month($month, $year);
$prev_year = $prev['year'];
@ -248,6 +248,7 @@ if ($status == 'todo') { $sql.= " AND a.percent < 100"; }
$sql.= ' ORDER BY datep';
dol_syslog("comm/action/index.php sql=".$sql, LOG_DEBUG);
//print $sql;
$resql=$db->query($sql);
if ($resql)
{

View File

@ -20,11 +20,11 @@
*/
/**
\file htdocs/comm/action/rapport/index.php
\ingroup commercial
\brief Page accueil des rapports des actions
\version $Id$
*/
* \file htdocs/comm/action/rapport/index.php
* \ingroup commercial
* \brief Page accueil des rapports des actions
* \version $Id$
*/
require_once("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
@ -79,6 +79,7 @@ $sql.= " GROUP BY date_format(a.datep, '%m/%Y') ";
$sql.= " ORDER BY a.datep DESC";
$sql.= $db->plimit($limit+1,$offset);
//print $sql;
$resql=$db->query($sql);
if ($resql)
{

View File

@ -6,6 +6,8 @@
-- when current version is 2.6.0 or higher.
--
update llx_actioncomm set datep = datec where datep is null and datec is not null;
-- Create new table for import module
create table llx_import_model
(