Problem/Motivation
Since we now allow placing blocks of PBs even if the source is disabled, we have introduced an issue where if you try to place a block on a disabled source, all the configuration that is expected is missing, and it whitescreens.
Steps to reproduce
Start up PB off of a normal install. (In this setup, Recipes & Contrib modules are enabled out of the box). Go to Block Layout and add a block for one of the other sources (i.e. Recommended or Local modules), and when you save that form, you go to the whitescreen.
Proposed resolution
Allow a disabled block to be configured and placed, and just ensure it doesn't render anything.
Issue fork project_browser-3553019
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
penyaskitoComment #5
phenaproximaThis should definitely be backported to 2.0.x.
Comment #6
phenaproximaComment #7
penyaskitoDidn't manually test this, but code looks good.
Tests pass and fails as expected. Wondering if we want a test for actually placing the block, but that would be probably be testing the block system itself, so RTBC.
Comment #8
phenaproximaWe already have a test of the block itself: https://git.drupalcode.org/project/project_browser/-/blob/2.1.x/tests/sr...
Comment #11
phenaproximaFweep!