Problem/Motivation

Creating content with the option --type without an option or with the wrong syntax, such as --types page, creates contents without a type assigned to. Viewing this content brings WSOD.

Proposed resolution

Check if type is given and syntax is correct

Remaining tasks

send patch

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mac_Weber created an issue. See original summary.

Mac_Weber’s picture

Status: Active » Needs review
FileSize
1.34 KB

Status: Needs review » Needs work

The last submitted patch, 2: check_content_type-2629892-2.patch, failed testing.

The last submitted patch, 2: check_content_type-2629892-2.patch, failed testing.

Mac_Weber’s picture

Assigned: Mac_Weber » Unassigned
Status: Needs work » Needs review

Testbot is complaining about a class not found. I don't know what is causing this problem as the class exists.

willzyx’s picture

Status: Needs review » Needs work

@Mac_Weber thanks for the patch! the failure was unrelated (see #2629828: Wrong dependencies are used on Drupal CI for devel_entity_test module).
Can we add test coverage for this?

willzyx’s picture

Status: Needs work » Closed (duplicate)

Closed as duplicated of #2517070: devel-generate creates invalid content (blank titles etc) if expected content-type does not exist. @Mac_Weber you can comment on that issue to get credit. Thanks!