Do not purge autosaved states for non-enabled entities.

Created on 17 January 2022, almost 3 years ago
Updated 9 October 2024, about 2 months ago

Problem/Motivation

The module always make a delete query even for non enabled entities.

Proposed resolution

Add additional check to find if current entity is enabled in configuration.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine dinazaur

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Tomefa Dresden

    I have update the code to check at the beginning on the config "active_on" if it's active or not.

    Then with latest release 1.16, a new function "autosave_form_entity_insert" have the same problem as the update.

    I added the same code at the beginning of both update and insert function to avoid running delete query on unable entities.

Production build 0.71.5 2024