Moderate a single draft error infinite loop

Created on 27 October 2021, about 3 years ago
Updated 30 January 2024, 10 months ago

Problem/Motivation

When trying to moderate on an item that only has 1 draft and nothing to diff, the system loops and WSOD, and fills the log with notices about missing $revision_ids[ (id) ]

Steps to reproduce

For my instance it was just - moderate a single draft of a normal content type.

Proposed resolution

I changed

// If there are only 2 revision return an empty row.
if ($revisions_count == 2) {
return [];
}

// If there are less-than 2 revision return an empty row.
if ($revisions_count <= 2) {

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States devitate Orange County, CA

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