Publication plugin only works with entity with 'status' property

Created on 31 July 2024, 5 months ago
Updated 1 August 2024, 5 months ago

Problem/Motivation

Status is hardcoded.
In case entities has a "published" property which is not 'status' but 'enabled' for example, plugin will not work.

Steps to reproduce

Try on entity which use a publish key other than status.

Proposed resolution

Get the entity key for "published" instead of hardcoded 'status'.
Use the EntityPublishedTrait to now if entity is published and to set publish state.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France goz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024