Radioactivity not set when creating nodes in code

Created on 4 December 2022, about 2 years ago
Updated 30 January 2023, about 2 years ago

Problem/Motivation

When creating nodes programmatically (with Node::create()) no entry is added to the radioactivity table in the database.

Steps to reproduce

  1. Set a Radioactivity Reference field on a content type.
  2. Give the reference field a non-zero default value.
  3. In a custom module, create a node programmatically.
  4. Check the radioactivity table in the database.
  5. Open the created page in the Drupal UI. Save the page.
  6. Note that the radioactivity table now has the correct entry in the database.
🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇺🇸United States oo0shiny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

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