diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 6804a0ec13b..502d14be39c 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -8542,6 +8542,7 @@ abstract class CommonObject // Retrieve all extrafield // fetch optionals attributes and labels $this->fetch_optionals(); + dol_syslog("aaa=".$this->id); return $this->id; } else { diff --git a/test/phpunit/KnowledgeRecordTest.php b/test/phpunit/KnowledgeRecordTest.php index ba0d24c854a..0122d8a8e6b 100644 --- a/test/phpunit/KnowledgeRecordTest.php +++ b/test/phpunit/KnowledgeRecordTest.php @@ -184,8 +184,9 @@ class KnowledgeRecordTest extends \PHPUnit\Framework\TestCase $db = $this->savdb; $localobject = new KnowledgeRecord($this->savdb); + print __METHOD__." id=".$id."\n"; $result = $localobject->fetch($id); - print __METHOD__." id=".$id." result=".$result."\n"; + print __METHOD__." result=".$result."\n"; $this->assertGreaterThanOrEqual(0, $result, 'fetch in testKnowledgeRecordDelete with id='.$id); $result = $localobject->delete($user);