mirror of
https://github.com/Karaka-Management/oms-SupplierManagement.git
synced 2026-02-09 21:48:40 +00:00
bug fixes
This commit is contained in:
parent
ac181da801
commit
1cb21f8f44
|
|
@ -115,12 +115,12 @@ class SupplierAttributeType implements \JsonSerializable, ArrayableInterface
|
|||
{
|
||||
if ($l11n instanceof SupplierAttributeTypeL11n) {
|
||||
$this->l11n = $l11n;
|
||||
} elseif ($this->l11n instanceof SupplierAttributeTypeL11n && \is_string($l11n)) {
|
||||
$this->l11n->title = $l11n;
|
||||
} elseif (\is_string($l11n)) {
|
||||
$this->l11n = new SupplierAttributeTypeL11n();
|
||||
$this->l11n->title = $l11n;
|
||||
$this->l11n->setLanguage($lang);
|
||||
} elseif ($this->l11n instanceof SupplierAttributeTypeL11n && \is_string($l11n)) {
|
||||
$this->l11n->title = $l11n;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user