Skip to content

Commit 3469aeb

Browse files
committed
Merge branch '5.x' into 6.x
2 parents 2922027 + 2ef7649 commit 3469aeb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Multiple feeds queued via a single CLI command are now processed sequentially, even if they’re batched. ([#1695](https://github.com/craftcms/feed-me/issues/1695))
66
- Feed Me CLI commands now support Craft’s `--isolated` flag to ensure they execute in one environment in a multi-compute setup. ([#1676](https://github.com/craftcms/feed-me/issues/1676))
7+
- Fixed a PHP error that could occur on the field mapping screen if you have a feed that references an asset as a default value for an asset field, and that asset was deleted. ([#1699](https://github.com/craftcms/feed-me/pull/1699))
78

89
## 6.10.2 - 2025-10-23
910

src/templates/_includes/fields/_base.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@
183183
{% set elements = [] %}
184184

185185
{% for elementId in defaultValue %}
186-
{% set elements = elements|merge([ craft.app.elements.getElementById(elementId) ]) %}
186+
{% set element = craft.app.elements.getElementById(elementId) %}
187+
{% if element is not empty %}
188+
{% set elements = elements|merge([element]) %}
189+
{% endif %}
187190
{% endfor %}
188191

189192
{{ forms.elementSelectField({

0 commit comments

Comments
 (0)