- 🇺🇸United States dave reid Nebraska USA
This also causes the following fatal error to happen when saving a node layout override, if the default contains an inline_block that does not exist:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'block_content_id' cannot be null: INSERT INTO "inline_block_usage" ("block_content_id", "layout_entity_id", "layout_entity_type") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => 715 [:db_insert_placeholder_2] => node ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of /code/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
- First commit to issue fork.
- Merge request !5522Draft: Issue #3294474: Imported layout builder settings fail if inline blocks are present due to missing revisions → (Open) created by sanduhrs
- 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe
Adding a patch to prevent the fatal.
- 🇺🇦Ukraine olegrymar
The fix proposed https://www.drupal.org/files/issues/2023-11-23/3294474-12-imported-lb-se... → may not work for some cases.
In general, it's very often for IDS to come as strings.
In PHP "5" !== 5. As a result, using is_int is not an option.
Please, review!
- Status changed to Needs review
9 months ago 5:19pm 21 March 2024 - Status changed to Needs work
9 months ago 8:04pm 21 March 2024 - 🇺🇸United States smustgrave
Should use MRs now vs patches as DrupalCi is shutting down.
But will need a test case to show the problem as well please