Problem/Motivation

Currently the settings fields at /admin/config/content/unique-fields are empty after installation, but should instead carry the default value: https://git.drupalcode.org/project/unique_field/-/blob/8.x-2.x/unique_fi...

Steps to reproduce

Visit /admin/config/content/unique-fields after a fresh install and see the fields empty, which is confusing.

Proposed resolution

  1. Remove the constant at https://git.drupalcode.org/project/unique_field/-/blob/8.x-2.x/unique_fi... and move the text into the .install config.
  2. Add an update hook to set the text for existing installations
  3. Remove the fallback to constant at https://git.drupalcode.org/project/unique_field/-/blob/8.x-2.x/unique_fi...

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3589117-2.patch3.2 KBskifdesu
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

skifdesu’s picture

Status: Active » Needs review
StatusFileSize
new3.2 KB

Added a patch which moves the constant into the .install config.

anybody’s picture

Status: Needs review » Needs work

@skifdesu thanks but please use merge-requests.

skifdesu’s picture

Status: Needs work » Needs review