Was this fix applied to released or dev, or do we still need to patch to be able to uninstall "context mobile condition" ?
Since the addition of User, Context (all) and Context (any) conditions in 4.0, Context now adds configuration for all these conditions on block creation/update, even if no conditions are specified. This results in an unnecessary dependency on Context.
The extraneous config/dependency have no immediate effect, but if Context is subsequently uninstalled, every block config added or updated since Context 4.0 was enabled on the site will be deleted.
The issue occurs when existing blocks are updated as well:
Below is an example from my site that resulted from adding a 'Powered by Drupal' block with no conditions at all:
uuid: xxx
langcode: en
status: true
dependencies:
module:
- context
- system
theme:
- xxx
id: poweredbydrupal_2
theme: xxx
region: brandbar_left
weight: 0
provider: null
plugin: system_powered_by_block
settings:
id: system_powered_by_block
label: 'Powered by Drupal'
provider: system
label_display: '0'
visibility:
user_status:
id: user_status
user_status:
viewing_profile: '0'
logged_viewing_profile: '0'
own_page_true: '0'
field_value: '0'
user_fields: uid
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
context_all:
id: context_all
values: ''
negate: null
context:
id: context
values: ''
negate: null
Don't save any context config if no context conditions are set to avoid creating a dependency. Details TBD.
TBD
None
None
None
Fixed
4.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Was this fix applied to released or dev, or do we still need to patch to be able to uninstall "context mobile condition" ?