Problem/Motivation
In Drupal 10, the Block Content plugin category changed from "Custom" to "Content block" (https://git.drupalcode.org/project/drupal/-/merge_requests/3612/diffs#a1...).
The panels IPE module in the AppView > addContentBlock method is using a hardcoded string to set the
activeCategory for the block picker redenring autoClick.
Since the content block category name changed in Drupal 10, the active category doesn't get set, the blockPicker fails and thus the "placement" form is never loaded.
Attaching a gif showing the bug in a brand new D10 site using:
"drupal/panelizer": "^4.5",
"drupal/panels": "^4.7",
Steps to reproduce
- Load any entity using panelizer with panels IPE
- Click on "Manage content"
- Click on "Create content"
- Pick a content block from the list
- Fill-in any required fields in the block create form
- Click on "Create and Place"
- Here the "placement" form with the region dropdown should display, but instead of that we get the "Manage content" view.
Unfortunately no errors are displayed in the console, which made this tiny bug really really hard to find.

Proposed resolution
It would be much better to be able to pass the category from the created block, BUT since I'm not really good at javascript I'll just provide a MR changing the hardcoded category name to the D10 one.
Remaining tasks
If a maintainer wants to review and add a better solution (grab the category from the created block instead of hardcoding the category name) feel free to add it to the MR.
| Comment | File | Size | Author |
|---|---|---|---|
| panels_create_and_place_block.gif | 831.36 KB | anairamzap |
Issue fork panels-3405276
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 #3
anairamzapComment #4
anairamzapComment #5
joseph.olstadComment #6
joseph.olstad#3383474: Fix HEAD test failures for 4.x
Comment #7
liam morlandComment #9
joelpittetOk manually merged the MR because it wouldn't let me catch up the MR in the UI... thanks everybody for working on this and for the patch @anairamzap
Comment #10
liam morlandIt seems the rebase button no longer appears in merge requests. Instead, one can rebase on the command line and then force-push.
Comment #12
baluertl