Revision user is set to owner instead of current user.

Created on 2 November 2022, over 2 years ago
Updated 8 June 2024, 9 months ago

Problem/Motivation

When scheduler is configured to create a new revision on publishing / unpublishing, the revision user is set to owner instead of current user.

Steps to reproduce

1. Install drupal with standard profile and scheduler module.
2. Log in as admin and go to /admin/structure/types/manage/article and enable scheduler to publish/unpublish and to create revision.
3. Go to /node/add/article, type "test" as title and enable scheduled publishing/unpublishing, save
4. After publish/unpublish time, go to /admin/config/system/cron and click "Run cron"
5. Go to /admin/reports/dblog and see there is an entry of type "scheduler" with message like "Article: scheduled publishing of test." and user "Anonymous (not verified)"
6. See the revisions page of the article created in step 3 and see there is an entry with message like "Published by Scheduler. The scheduled publishing date was dd/mm/yyyy - hh:mm." by admin.

Expected result: the revision entry should be by Anonymous (not verified).
Actual result: the revision entry is by admin.

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇫🇮Finland olli

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