Reviewed & tested by the community
Project:
Autosave Form
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2023 at 14:48 UTC
Updated:
28 May 2025 at 09:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
abhinand gokhala k commentedSolved the issue.
Comment #3
abhinand gokhala k commentedComment #4
gaurav_manerkar commentedLooks good, thanks.
Comment #5
tomefa commentedThanks, the patch also work for me and solve this issue !
Comment #6
hchonovCould 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.
Comment #9
scott_euser commentedOkay this was reproduced here #3505659: Error when using autosave_form module
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.
Comment #10
milosr commentedTested and works.