(tests followup) Notice generated when programmatically creating a forum node

Created on 21 May 2012, about 12 years ago
Updated 24 April 2024, 2 months ago

When constructing a forum node object and saving it with node_save(), one sees the following notice:

Undefined property: stdClass::$nid File /var/www/modules/forum/forum.module, line 332(file: /var/www/modules/forum/forum.module, line 332)

See #1590008: Notice when saving forum entry β†’ - there are other instances scattered around d.o. The problem is forum_node_presave() assumes $node->nid is set.

I could not reproduce this on D8 (adding the equivalent test code there).

πŸ“Œ Task
Status

Needs work

Version

1.0

Component

forum.module

Created by

πŸ‡ΊπŸ‡ΈUnited States mikeryan Murphysboro, IL, USA

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.69.0 2024