diff --git a/Theme/Backend/vehicle-list.tpl.php b/Theme/Backend/vehicle-list.tpl.php index f8205bc..2adf467 100755 --- a/Theme/Backend/vehicle-list.tpl.php +++ b/Theme/Backend/vehicle-list.tpl.php @@ -103,14 +103,14 @@ echo $this->getData('nav')->render(); ?> $value) : ++$count; - $url = UriFactory::build('{/base}/sales/client/profile?{?}&id=' . $value->getId()); + $url = UriFactory::build('{/base}/sales/client/profile?{?}&id=' . $value->id); $image = $value->getFileByTypeName('client_profile_image'); ?> <?= $this->getHtml('IMG_alt_client'); ?> + src="id === 0 ? + UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : + UriFactory::build('{/base}/' . $image->getPath()); ?>"> printHtml($value->number); ?> printHtml($value->profile->account->name1); ?> printHtml($value->profile->account->name2); ?> printHtml($value->mainAddress->city); ?> diff --git a/Theme/Backend/vehicle-profile.tpl.php b/Theme/Backend/vehicle-profile.tpl.php index 9feb413..ab6a5c0 100755 --- a/Theme/Backend/vehicle-profile.tpl.php +++ b/Theme/Backend/vehicle-profile.tpl.php @@ -217,7 +217,7 @@ echo $this->getData('nav')->render(); getHtml('CreatedAt'); ?> getId()); + $url = UriFactory::build('{/base}/editor/single?{?}&id=' . $note->id); ?> title; ?> @@ -240,7 +240,7 @@ echo $this->getData('nav')->render(); getHtml('CreatedAt'); ?> getId()); + $url = UriFactory::build('{/base}/media/single?{?}&id=' . $file->id); ?> name; ?> @@ -269,7 +269,7 @@ echo $this->getData('nav')->render(); getId()); + $url = UriFactory::build('{/base}/sales/bill?{?}&id=' . $invoice->id); ?> getNumber(); ?> diff --git a/tests/Models/Vehicle.php b/tests/Models/Vehicle.php index a79c40f..73ac808 100755 --- a/tests/Models/Vehicle.php +++ b/tests/Models/Vehicle.php @@ -16,5 +16,5 @@ namespace Modules\FleetManagement\Models; class Vehicle { - protected int $id = 0; + public int $id = 0; } \ No newline at end of file