commit
020ba25956
@ -368,8 +368,7 @@ class MyObject extends CommonObject
|
||||
$result = $object->createCommon($user);
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
$this->error = $object->error;
|
||||
$this->errors = $object->errors;
|
||||
$this->setErrorsFromObject($object);
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
@ -1056,8 +1055,7 @@ class MyObject extends CommonObject
|
||||
$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_myobject = '.((int) $this->id)));
|
||||
|
||||
if (is_numeric($result)) {
|
||||
$this->error = $objectline->error;
|
||||
$this->errors = $objectline->errors;
|
||||
$this->setErrorsFromObject($objectline);
|
||||
return $result;
|
||||
} else {
|
||||
$this->lines = $result;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user