Cannot exclude node title on node creation

Created on 7 March 2012, almost 13 years ago
Updated 15 January 2025, about 1 month ago

When creating a new node, the exclude node title checkbox is ignored. You have to edit the existing node to set it.
The reason is: the module handles this checkbox in the hook_form_submit procedure BEFORE the node is created. As a consequence, the needed node nid does not exist yet.

Please find an attached patch that moves the checkbox handling into the _nodeapi procedure which is being called after the node has been created/updated. It also removes nid from the exclude title node list when a node is being deleted.
This patch also recheck permission at submit time to avoid a forged request bypassing the authorization check.

🐛 Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

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.

No activities found.

Production build 0.71.5 2024