Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298134

Programatically creating a published entity doesn't result in a published entity.

$
0
0

Problem/Motivation

If you create a node and call setPublished and immediately save it and call isPublished, you'll find the entity is unpublished when it belongs to a bundle that is being moderated.

Maybe this is the correct behaviour based on the developer not specifying a moderation state, but it's not how it used to work, so it's worth at least an issue discussing what should happen.

(Note, the pass in #7 and fail in #20 in #2825579: Unable to Publish/Unpublish from Content Admin Screen when content_moderation enabled indicates the timeline for when the change occurred, likely the workflow component split).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 298134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>