Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a better place to invoke setIsWorkflowInEffect than inside updateCMSFields #273

Open
olyism opened this issue Jun 28, 2016 · 1 comment

Comments

@olyism
Copy link

olyism commented Jun 28, 2016

$this->setIsWorkflowInEffect() is invoked in updateCMSFields within WorkflowEmbargoExpiryExtension.php.

It may be better to refactor and invoke this somewhere else, e.g. within onBeforeWrite.

@nyeholt
Copy link
Contributor

nyeholt commented Jun 28, 2016

isWorkflowInEffect is not actually persisted to the database though, it's only used for things like determining which fields should be shown at a particular point in time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants