Fixed
Project:
Field Defaults
Version:
2.1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2026 at 22:46 UTC
Updated:
24 Jul 2026 at 15:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
nickolajFixed two bugs in `FieldDefaultsProcessor::processEntityBatch()`: (1) `$hasChanged` flag was not reset per entity iteration, causing incorrect saves across batch items; (2) `$entity` was reassigned to a translation during language processing, which caused the save to operate on the wrong object. Also moved the save logic inside the entity load check to prevent errors when entity loading fails.
Comment #5
kfu commented@nickolaj Thanks for your work. Since setting the values still didn't work I fixed another bug. The batch process wasn't called.
Attached my patch, working for D11.3.3 with PHP 8.3.23.
Comment #8
darren ohAbout a year ago the field settings were updated to submit via AJAX. Batches do not run from AJAX submits.
Comment #9
siramsay commentedI used and tested the patch at #8, and it works.
D11.3.6
PHP8.3.25
Comment #11
b_sharpe commentedCombined patch into MR. Although #8 works, I don't think it's the correct implementation as it removes ajax from all fields forms.