autofixes

This commit is contained in:
Dennis Eichhorn 2023-08-30 12:08:10 +00:00
parent eb25681cbb
commit bedb4ae390
3 changed files with 3 additions and 4 deletions

View File

@ -240,7 +240,6 @@ final class BackendController extends Controller
->where(SupplierMapper::HAS_MANY['files']['self'], '=', $supplier->id) ->where(SupplierMapper::HAS_MANY['files']['self'], '=', $supplier->id)
->where(MediaTypeMapper::TABLE . '.' . MediaTypeMapper::getColumnByMember('name'), '=', 'supplier_profile_image'); ->where(MediaTypeMapper::TABLE . '.' . MediaTypeMapper::getColumnByMember('name'), '=', 'supplier_profile_image');
$clientImage = MediaMapper::get() $clientImage = MediaMapper::get()
->with('types') ->with('types')
->where('id', $results) ->where('id', $results)

View File

@ -101,7 +101,7 @@ echo $this->data['nav']->render(); ?>
</label> </label>
<tbody> <tbody>
<?php $count = 0; foreach ($suppliers as $key => $value) : ++$count; <?php $count = 0; foreach ($suppliers as $key => $value) : ++$count;
$url = UriFactory::build('{/base}/purchase/supplier/profile?{?}&id=' . $value->id); $url = UriFactory::build('{/base}/purchase/supplier/profile?{?}&id=' . $value->id);
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a> <td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>

View File

@ -23,8 +23,8 @@ $countries = \phpOMS\Localization\ISO3166NameEnum::getConstants();
* @var \Modules\SupplierManagement\Models\Supplier $supplier * @var \Modules\SupplierManagement\Models\Supplier $supplier
*/ */
$supplier = $this->data['supplier']; $supplier = $this->data['supplier'];
$notes = $supplier->notes; $notes = $supplier->notes;
$files = $supplier->files; $files = $supplier->files;
$supplierImage = $this->getData('supplierImage') ?? new NullMedia(); $supplierImage = $this->getData('supplierImage') ?? new NullMedia();