Disable registration not remove all data

Created on 4 September 2025, about 1 month ago

Problem/Motivation

When I edit a registration, and deactivate it, it does not delete the data from the registration_settings_field_data table.
The data from the node__field_XXX and node_revision__field_XXX tables is successfully deleted but there remains a trace in the registration_settings_field_data table.

πŸ› Bug report
Status

Active

Version

3.4

Component

Registration Core

Created by

πŸ‡«πŸ‡·France slayne40

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

Comments & Activities

  • Issue created by @slayne40
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    It works this way on purpose so if you re-activate, you get your old settings back. There is nothing wrong with have settings data stick around. That said, adding an option so it does go away isn't a bad idea either. Changing to Feature Request.

  • πŸ‡«πŸ‡·France slayne40

    Sorry, I didn't elaborate, but this is a problem in views that use the "node registration settings" relationship and the status value to know if a registration is active or not.

    When a deactivated registration (without a type) is created, there is no data in the registration_settings_field_data table; the relationship will have no value (it is considered inactive).
    If an activated registration is created, there will be a status value (active or inactive).

    But if a registration that was previously activated is deactivated, the status information persists and indicates an incorrect status.
    A new deactivated registration and an old one that is deactivated do not have the same state.

    There may be a problem in the view's "node registration settings" relationship...
    If a registration is disabled, the relationship shouldn't return the settings information. Yet it does.

Production build 0.71.5 2024