fix pictures 2

This commit is contained in:
2026-06-29 20:02:20 +03:30
parent c177bdbb22
commit 56ee99702b
3 changed files with 18 additions and 17 deletions
@@ -78,7 +78,7 @@ class ProductController extends SuperController
]);
if ($product->relationLoaded('file') && $product->file) {
$product->file->setAttribute('full_src', File::publicUrl($product->file->getAttributes()['src'] ?? null));
$product->file->setAttribute('full_src', $product->file->src);
}
if ($representativeId !== null && (int) $product->id === $representativeId) {