not enough test
can be a problem with objects who don't have required socid Furthermore it is impossible to unset a property : https://www.php.net/manual/en/function.property-exists.php#116824
This commit is contained in:
parent
a4e39ba1be
commit
ef802d426e
1 changed files with 1 additions and 1 deletions
|
|
@ -5387,7 +5387,7 @@ abstract class CommonObject
|
|||
|
||||
// Define output language and label
|
||||
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
||||
if (property_exists($this, 'socid') && !is_object($this->thirdparty)) {
|
||||
if (property_exists($this, 'socid') && !empty($this->socid) && !is_object($this->thirdparty)) {
|
||||
dol_print_error(null, 'Error: Method printObjectLine was called on an object and object->fetch_thirdparty was not done before');
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue