Problem/Motivation

Checking "enforce token usage" and saving it doesn't do anything. This goes for any content type I have tried.

Steps to reproduce

Drupal 10.2.4

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#7 3461624-force-key.patch1.12 KBtavib47

Issue fork tca-3461624

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

london6339 created an issue. See original summary.

drupgirl’s picture

london6339’s picture

Even when I import config that adds forced: true or forced: 1 to the TCA content type yml, the yml reverts back to the previous one.

wgoley06’s picture

Hi, unless I've overlooked another patch, I still seem to be running into this issue with the enforce token to save on specific nodes. I've tried to export configurations, update the config file, and reimport but its not saving still. I see in the DB that the

SELECT name, data FROM config WHERE name = 'tca.settings';
+--------------+----------------------------------------------+
| name | data |
+--------------+----------------------------------------------+
| tca.settings | a:1:{s:19:"enforce_token_usage";s:4:"true";} |
+--------------+----------------------------------------------+

enforce_token_usage: true
uuid: faf053eb-da89-4669-a1db-c7b864b9e690
langcode: en
status: true
dependencies:
config:
- node.type.estimate
id: node_type_estimate
active: 1
token: required
public: false

I tried changing themes and uninstalled additional modules that might conflict but having no luck.

Anyone else figure out the issue on this one?

tavib47 made their first commit to this issue’s fork.

tavib47’s picture

StatusFileSize
new1.12 KB

I create a MR to fix this issue. I found out that "force" key is missing from TcaSettings config entity.

I'm also attaching the patch.

tavib47’s picture

mauro_’s picture

Status: Needs review » Fixed

Hi, this issue should be fixed in the latest release. Thanks for the contributions @london6339 @drupgirl @wgoley06 @tavib47

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

mauro_’s picture

Status: Fixed » Closed (fixed)