Add log
This commit is contained in:
parent
9557b62e01
commit
12748640a5
@ -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 {
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user