- Issue created by @arunkumark
- Status changed to Needs work
3 months ago 2:19pm 15 January 2025 - 🇩🇪Germany hchonov 🇪🇺🇩🇪🇧🇬
1. You are adding the new message, but not using it anywhere.
2. Further I think we should add everything to the regular settings file as maybe we should merge the messages file into it - otherwise the edit form looks strange editing two different configs.
- First commit to issue fork.
- 🇵🇱Poland dlevchik Poznan, Poland
The changes to a form were also causing the error with form save:
TypeError: Cannot access offset of type string on string in Drupal\autosave_form\Form\AutosaveFormSettingsForm->submitForm() (line 226 of modules/custom/autosave_form-3485546/src/Form/AutosaveFormSettingsForm.php).
Fixed that, moved messages forms to separate accordion in the form
Added entity_saved_as_draft to a messages config, the one that says "A version of this page you were editing at @date was saved as a draft. Do you want to resume editing or discard it?", created hook_update for it
@hchonov I thought about merging autosave_form.messages into the autosave_form.settings, but won't it be better to separate these things? Plus, if we merge it, some translations and config rewritings on current sites might broke