';
if ($user->rights->projet->all->creer || $user->rights->projet->creer)
@@ -205,6 +206,7 @@ if (count($tasksarray)>0)
$tasks[$taskcursor]['task_milestone']=0;
$tasks[$taskcursor]['task_percent_complete']=$val->progress;
//$tasks[$taskcursor]['task_name']=$task->getNomUrl(1);
+ //print dol_print_date($val->date_start).dol_print_date($val->date_end).'
'."\n";
$tasks[$taskcursor]['task_name']=$val->label;
$tasks[$taskcursor]['task_start_date']=$val->date_start;
$tasks[$taskcursor]['task_end_date']=$val->date_end;
@@ -243,7 +245,6 @@ if (count($tasksarray)>0)
//print "xxx".$val->id.$tasks[$taskcursor]['task_resources'];
$taskcursor++;
}
- //var_dump($tasks);
print "\n";
diff --git a/test/phpunit/FunctionsLibTest.php b/test/phpunit/FunctionsLibTest.php
index 8282be3eaea..0f1969c9e6a 100755
--- a/test/phpunit/FunctionsLibTest.php
+++ b/test/phpunit/FunctionsLibTest.php
@@ -233,9 +233,12 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
$input='
abc
';
$after=dol_textishtml($input);
$this->assertTrue($after);
- $input='

';
+ $input='

';
$after=dol_textishtml($input);
$this->assertTrue($after,'Failure on test of img tag');
+ $input='
';
+ $after=dol_textishtml($input);
+ $this->assertTrue($after,'Failure on test of a tag');
// False
$input='xxx < br>';
@@ -247,6 +250,10 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
$input='xxx
';
$after=dol_textishtml($input);
$this->assertFalse($after);
+ $input='This is a text with html comments '; // we suppose this is not enough to be html content
+ $after=dol_textishtml($input);
+ $this->assertFalse($after);
+
}