- ๐ณ๐ฟNew Zealand quietone New Zealand
I read the other issue, from #14, and looked at the change. I agree with #14 and this can be closed.
Thanks
- ๐จ๐ฆCanada liquidcms
I also want to hide/disable the moderation state field on the edit form as i only want editors to access state changes through the moderation control block.
setting either:
$form["moderation_state"]["widget"][0]["state"]['#disabled'] = true;
or
$form["moderation_state"]["widget"][0]["state"]['#access'] = true;attempts to leave the Published state as Published even though workflow want to force it to Draft. And in the case of #disabled, where i can still see the selection, it is selecting Draft but in all cases i get error saying Live to Live is not a valid transition (which it isn't).
I would think either hidden or disabled should still allow workflow default transitions to occur.