- Issue created by @abhinand gokhala k
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22last update
almost 2 years ago Waiting for branch to pass - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 2:53pm 21 April 2023 - last update
almost 2 years ago 1 pass - Status changed to RTBC
7 months ago 3:51pm 25 September 2024 - 🇩🇪Germany Tomefa Dresden
Thanks, the patch also work for me and solve this issue !
- 🇩🇪Germany hchonov 🇪🇺🇩🇪🇧🇬
Could you please elaborate on how this can be reproduced? In this function apparently we are running into an autosave submission, but the autosave submit element is not there, which does not seem right.
- Status changed to Postponed: needs info
about 2 months ago 5:59am 12 February 2025 - First commit to issue fork.
- 🇬🇧United Kingdom scott_euser
Okay this was reproduced here 🐛 Error when using autosave_form module Active
The issue occurs if any other form is built on the same page as a form where an autocomplete is build. This is because AutosaveFormBuilder takes over from FormBuilder and assumes the form being acted on is the entity form, yet it is possible to have multiple forms on the page. AutosaveFormBuilder should check if the form being acted on is one it has altered first.
The patch is okay, but actually would be better to just bail earlier and delegate back to FormBuilder from core if its a form that we don't care about here. Merge request with that earlier bailing out created + comment added with explanation for future us.