Skip to content

Commit 6a613a5

Browse files
committedNov 23, 2024·
bug #6563 use image_uri for the lightbox thumbnail (guillaume-sainthillier)
This PR was merged into the 4.x branch. Discussion ---------- use image_uri for the lightbox thumbnail see #6562 Commits ------- 4e2ed82 bug #6562 use image_uri for the lightbox thumbnail
2 parents 773b442 + 4e2ed82 commit 6a613a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎templates/crud/form_theme.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@
380380

381381
<a href="#" class="ea-lightbox-thumbnail" data-ea-lightbox-content-selector="#{{ _lightbox_id }}">
382382
{% if formTypeOptions.imagine_pattern is defined and formTypeOptions.imagine_pattern is not empty %}
383-
<img src="{{ (asset_helper is same as(true) ? asset(download_uri) : download_uri)|ea_apply_filter_if_exists('imagine_filter', formTypeOptions.imagine_pattern) }}">
383+
<img src="{{ (asset_helper is same as(true) ? asset(image_uri) : image_uri)|ea_apply_filter_if_exists('imagine_filter', formTypeOptions.imagine_pattern) }}">
384384
{% else %}
385-
<img src="{{ asset_helper is same as(true) ? asset(download_uri) : download_uri }}">
385+
<img src="{{ asset_helper is same as(true) ? asset(image_uri) : image_uri }}">
386386
{% endif %}
387387
</a>
388388

0 commit comments

Comments
 (0)
Please sign in to comment.