bug fixes

This commit is contained in:
Dennis Eichhorn 2021-04-04 17:53:48 +02:00
parent ac181da801
commit 1cb21f8f44

View File

@ -115,12 +115,12 @@ class SupplierAttributeType implements \JsonSerializable, ArrayableInterface
{ {
if ($l11n instanceof SupplierAttributeTypeL11n) { if ($l11n instanceof SupplierAttributeTypeL11n) {
$this->l11n = $l11n; $this->l11n = $l11n;
} elseif ($this->l11n instanceof SupplierAttributeTypeL11n && \is_string($l11n)) {
$this->l11n->title = $l11n;
} elseif (\is_string($l11n)) { } elseif (\is_string($l11n)) {
$this->l11n = new SupplierAttributeTypeL11n(); $this->l11n = new SupplierAttributeTypeL11n();
$this->l11n->title = $l11n; $this->l11n->title = $l11n;
$this->l11n->setLanguage($lang); $this->l11n->setLanguage($lang);
} elseif ($this->l11n instanceof SupplierAttributeTypeL11n && \is_string($l11n)) {
$this->l11n->title = $l11n;
} }
} }