Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
Steps to reproduce:
- Enable the the Locale module
- Enable an additional language
- Configure language detection/selection to use URL prefixes
- Create a node
- Access the node edit from using a language-prefixed URL and trigger autosave
- Save the node
Expected behavior: the {autosaved_forms}
table does not contain an entry for the edit form
Actual behavior: it does :)
Proposed resolution
If the site is multilingual add to the delete query additional conditions to delete the language-prefixed URLs.
Remaining tasks
Write a patch- Reviews
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#3 | autosave-ml_path_delete-2229951-3.patch | 1.81 KB | marco |
Comments
Comment #1
plachComment #2
markhalliwellThis works.
Comment #3
marco CreditAttribution: marco commentedI added a check to prevent a notice when a node has language "und".