Problem/Motivation

In the module toc_js_per_node we can specifiy the default override value on the node edit form. But it works only on the UI side.

The toc activation default value is not applied to the underlying field and by consequence not applied when creating a node programmatically.

Proposed resolution

Define a BaseFieldOverride that checks the third party setting of the corresponding node type for its default value.

Issue fork toc_js-3568970

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

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review
mably’s picture

Issue summary: View changes
mably’s picture

Title: Fix Default Override Value Application in toc_js_per_node » toc_js_per_node active default value only applied in node form, not via entity API
Category: Feature request » Bug report

  • mably committed bd70fa49 on 3.x
    fix: #3568970 toc_js_per_node active default value only applied in node...
mably’s picture

Status: Needs review » Fixed

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.

  • mably committed 2a6dcbb5 on 3.x
    fix: #3568970 toc_js_per_node active default value only applied in node...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.