Skip to content
Snippets Groups Projects
Commit 66531ea5 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge branch 'develop' of ssh://git@github.com/Dolibarr/dolibarr.git

into develop

Conflicts:
	htdocs/fourn/commande/index.php
parents 9114fec4 6c3e88e4
No related branches found
No related tags found
No related merge requests found
...@@ -436,7 +436,7 @@ print "</table><br>"; ...@@ -436,7 +436,7 @@ print "</table><br>";
print '</td></tr></table>'; print '</td></tr></table>';
$db->close();
llxFooter(); llxFooter();
$db->close();
?> ?>
...@@ -29,3 +29,5 @@ insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 2 ...@@ -29,3 +29,5 @@ insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 2
ALTER TABLE llx_commande_fournisseur CHANGE COLUMN date_cloture date_approve datetime; ALTER TABLE llx_commande_fournisseur CHANGE COLUMN date_cloture date_approve datetime;
ALTER TABLE llx_commande_fournisseur CHANGE COLUMN fk_user_cloture fk_user_approve integer; ALTER TABLE llx_commande_fournisseur CHANGE COLUMN fk_user_cloture fk_user_approve integer;
ALTER TABLE llx_mailing MODIFY COLUMN body mediumtext;
\ No newline at end of file
...@@ -30,7 +30,7 @@ create table llx_mailing ...@@ -30,7 +30,7 @@ create table llx_mailing
titre varchar(60), -- Ref of mailing titre varchar(60), -- Ref of mailing
entity integer DEFAULT 1 NOT NULL, -- multi company id entity integer DEFAULT 1 NOT NULL, -- multi company id
sujet varchar(60), -- Sujet of mailing sujet varchar(60), -- Sujet of mailing
body text, body mediumtext,
bgcolor varchar(8), -- Backgroud color of mailing bgcolor varchar(8), -- Backgroud color of mailing
bgimage varchar(255), -- Backgroud image of mailing bgimage varchar(255), -- Backgroud image of mailing
cible varchar(60), cible varchar(60),
......
...@@ -465,14 +465,14 @@ class Project extends CommonObject ...@@ -465,14 +465,14 @@ class Project extends CommonObject
// End call triggers // End call triggers
} }
dol_syslog("Project::delete sql=" . $sql, LOG_DEBUG); dol_syslog(get_class($this) . "::delete sql=" . $sql, LOG_DEBUG);
$this->db->commit(); $this->db->commit();
return 1; return 1;
} }
else else
{ {
$this->error = $this->db->lasterror(); $this->error = $this->db->lasterror();
dol_syslog("Project::delete " . $this->error, LOG_ERR); dol_syslog(get_class($this) . "::delete " . $this->error, LOG_ERR);
$this->db->rollback(); $this->db->rollback();
return -1; return -1;
} }
......
<?php <?php
/* Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2008-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2010_2012 Regis Houssin <regis@dolibarr.fr>
* *
* 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
...@@ -368,8 +368,6 @@ class Task extends CommonObject ...@@ -368,8 +368,6 @@ class Task extends CommonObject
} }
else else
{ {
$this->db->free($resql);
//Delete associated link file //Delete associated link file
if ($conf->projet->dir_output) if ($conf->projet->dir_output)
{ {
......
...@@ -60,8 +60,8 @@ class AllTests ...@@ -60,8 +60,8 @@ class AllTests
{ {
$suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework'); $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
require_once dirname(__FILE__).'/CoreTest.php'; //require_once dirname(__FILE__).'/CoreTest.php';
$suite->addTestSuite('CoreTest'); //$suite->addTestSuite('CoreTest');
require_once dirname(__FILE__).'/AdminLibTest.php'; require_once dirname(__FILE__).'/AdminLibTest.php';
$suite->addTestSuite('AdminLibTest'); $suite->addTestSuite('AdminLibTest');
require_once dirname(__FILE__).'/DateLibTest.php'; require_once dirname(__FILE__).'/DateLibTest.php';
...@@ -72,7 +72,7 @@ class AllTests ...@@ -72,7 +72,7 @@ class AllTests
$suite->addTestSuite('ImagesLibTest'); $suite->addTestSuite('ImagesLibTest');
require_once dirname(__FILE__).'/FunctionsTest.php'; require_once dirname(__FILE__).'/FunctionsTest.php';
$suite->addTestSuite('FunctionsTest'); $suite->addTestSuite('FunctionsTest');
require_once dirname(__FILE__).'/NumberingModulesTest.php'; require_once dirname(__FILE__).'/_NumberingModulesTest.php';
$suite->addTestSuite('NumberingModulesTest'); $suite->addTestSuite('NumberingModulesTest');
require_once dirname(__FILE__).'/PdfDocTest.php'; require_once dirname(__FILE__).'/PdfDocTest.php';
$suite->addTestSuite('PdfDocTest'); $suite->addTestSuite('PdfDocTest');
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
//define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver //define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver
require_once 'PHPUnit/Autoload.php'; require_once 'PHPUnit/Autoload.php';
require_once dirname(__FILE__).'/../../htdocs/master.inc.php';
if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1');
if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment