Generate+Hide option fails when Preserve Title option selected

Created on 28 March 2023, over 1 year ago
Updated 13 August 2024, 4 months ago

Problem/Motivation

If the "Automatically generate the label and hide the label field" option is used and the "Preserve already created node titles" option is also enabled, nodes are created without a title which results in the following error:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null: INSERT INTO "test23187028node_field_data" ("nid", "vid", "type", "langcode", "status", "uid", "title", "created", "changed", "promote", "sticky", "default_langcode", "revision_translation_affected") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12); Array

Steps to reproduce

* Create a content type.
* Set the Auto EntitLabel option to "Automatically generate the label and hide the label field" and fill in a pattern.
* Enable the "Preserve already created node titles" option.
* Create a node.

What should happen:
* The node is created with the pattern.

What actually happens:
* The error above is output.

Proposed resolution

Add test coverage for this scenario.
Fix the scenario.

Remaining tasks

Test coverage.
Fix the bug.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024