Add validation to enforce only one doc per entity being documented

Created on 4 February 2023, almost 2 years ago
Updated 27 April 2023, over 1 year ago

Problem/Motivation

When a CM Document is saved, validation should prevent save if there is already a CM document for that entity or entity:field combination.

The system should never have two documentations for the same thing.

blocked by https://www.drupal.org/project/content_model_documentation/issues/3334959 ✨ Add fieldable documentation entity Fixed

Steps to reproduce

Proposed resolution

The approach should be similar to what is done in the allow_only_one module.

However that module can not be used directly because cm_document entity type is not supported by that module and there os no good reason to extend that module to use it.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

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