diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 0428674..5673e2a 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -240,7 +240,6 @@ final class BackendController extends Controller ->where(SupplierMapper::HAS_MANY['files']['self'], '=', $supplier->id) ->where(MediaTypeMapper::TABLE . '.' . MediaTypeMapper::getColumnByMember('name'), '=', 'supplier_profile_image'); - $clientImage = MediaMapper::get() ->with('types') ->where('id', $results) diff --git a/Theme/Backend/supplier-list.tpl.php b/Theme/Backend/supplier-list.tpl.php index 37d8ef1..d1384f4 100755 --- a/Theme/Backend/supplier-list.tpl.php +++ b/Theme/Backend/supplier-list.tpl.php @@ -101,7 +101,7 @@ echo $this->data['nav']->render(); ?> $value) : ++$count; - $url = UriFactory::build('{/base}/purchase/supplier/profile?{?}&id=' . $value->id); + $url = UriFactory::build('{/base}/purchase/supplier/profile?{?}&id=' . $value->id); ?> printHtml($value->number); ?> diff --git a/Theme/Backend/supplier-profile.tpl.php b/Theme/Backend/supplier-profile.tpl.php index e0be05e..38bbfd2 100755 --- a/Theme/Backend/supplier-profile.tpl.php +++ b/Theme/Backend/supplier-profile.tpl.php @@ -23,8 +23,8 @@ $countries = \phpOMS\Localization\ISO3166NameEnum::getConstants(); * @var \Modules\SupplierManagement\Models\Supplier $supplier */ $supplier = $this->data['supplier']; -$notes = $supplier->notes; -$files = $supplier->files; +$notes = $supplier->notes; +$files = $supplier->files; $supplierImage = $this->getData('supplierImage') ?? new NullMedia();