Problem/Motivation

The Revision log on Nodes no longer has the Required flag.

The 1.0.5 release added a check on if (!$form_object instanceof EntityFormInterface) { return; } but didn't add the use Drupal\Core\Entity\EntityFormInterface; statement so has been silently exiting ever since.

Steps to reproduce

Install the module @v1.0.5, configure a content type to use it, edit a node of that content type.

The Required indicator is not present.

Proposed resolution

The fix is to add use Drupal\Core\Entity\EntityFormInterface;

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gold created an issue. See original summary.

gold’s picture

Hmm... @haklo, can you update the 1.0.x branch please? The issue fork is cut from 1.0.x but the issue only exists in 1.0.5. It's looking like the work on 1.0.5 was not merged to the 1.0.x branch.

gold’s picture

Issue summary: View changes

  • haklo committed 4baecf1f on 1.0.x
    Issue #3617514: Fix required revision log indicator
    
haklo’s picture

Assigned: Unassigned » haklo
Status: Active » Fixed

@gold, Thank you for reporting this issue, identifying the missing import for EntityFormInterface, and providing a solution.

This has been fixed in the 1.0.x branch and released as 1.0.6.

Users updating to version 1.0.6 will need to resave the Require Revision settings for the fix to take effect.

Marking this issue as Fixed.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.