Uninstalling module deletes blocks with config present

Created on 9 February 2022, almost 3 years ago
Updated 20 January 2023, almost 2 years ago

Problem/Motivation

When uninstalling this module, it deletes any blocks which have the module's config present (even if it is empty).

Steps to reproduce

  1. Install the module
  2. Create a block and set a "not node type" or "not taxonomy type" condition and save
  3. Edit an existing block, don't change any conditions and save (thus adding config)
  4. Uninstall the module

Proposed resolution

Take inspiration from the "Block Visibility Groups" module (#2880373) and remove the conditions on the blocks on uninstall so the blocks don't get deleted.

Remaining tasks

Add uninstall functions to Block Visibility Conditions module and Block Visibility Conditions Commerce submodule.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom littlepixiez

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.

No activities found.

Production build 0.71.5 2024