formatting fixes, bug fixes and support impl.

This commit is contained in:
Dennis Eichhorn 2021-07-04 18:27:21 +02:00
parent e60e0546d2
commit 582ce1e61d
2 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ final class ApiController extends Controller
} }
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles( $uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
$request->getData('name') ?? '', [$request->getData('name') ?? ''],
$uploadedFiles, $uploadedFiles,
$request->header->account, $request->header->account,
__DIR__ . '/../../../Modules/Media/Files/Modules/SupplierManagement/' . ($request->getData('supplier') ?? '0'), __DIR__ . '/../../../Modules/Media/Files/Modules/SupplierManagement/' . ($request->getData('supplier') ?? '0'),

View File

@ -117,7 +117,7 @@ SupplierAttributeTypeL11n $l11n;
{ {
if ($l11n instanceof SupplierAttributeTypeL11n) { if ($l11n instanceof SupplierAttributeTypeL11n) {
$this->l11n = $l11n; $this->l11n = $l11n;
} elseif ($this->l11n instanceof SupplierAttributeTypeL11n) { } elseif (isset($this->l11n) && $this->l11n instanceof SupplierAttributeTypeL11n) {
$this->l11n->title = $l11n; $this->l11n->title = $l11n;
} else { } else {
$this->l11n = new SupplierAttributeTypeL11n(); $this->l11n = new SupplierAttributeTypeL11n();