Doesn't create title if Source Field is not chosen

Created on 14 October 2022, over 2 years ago
Updated 23 February 2024, about 1 year ago

Problem/Motivation

I want to use Autotitle to create a title using tokens. I don't have any text input fields, just files. The Source Field in the Content Type page was empty. The Token field was enabled and properly filled. When I saved a piece of content, i got the error "Integrity constraint violation: 1048 Column 'title' cannot be null:"

I fixed it by adding a dummy text field and leaving it empty.

Steps to reproduce

1. Create content type
2. Remove Body field
3. Create Autotitle via tokens (ensure Source Field is empty)
4. Create content using configuration

Proposed resolution

Best: Enable a checkbox to disable text field checking for usable title text

Second best: Check if Source Field is empty and move to creating Autotitle via token

Acceptable: Add this information to the documentation as a caveat, allowing people to use some kind of text field.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡±πŸ‡°Sri Lanka Suchetha

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024