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

[4.0] Fix undefined property workflows #27873

Closed

Conversation

wilsonge
Copy link
Contributor

@wilsonge wilsonge commented Feb 9, 2020

Pull Request for Issue #26306

Summary of Changes

Fixes undefined property in error logs when editing a stage or transition.

Testing Instructions

Create a new workflow.
Under Stages column, click the count badge.
Edit Unpublished.
Click Save & Close.
View PHP error log.

Trying to get property 'workflow_id' of non-object in \administrator\components\com_workflow\Model\StageModel.php on line 163

Do the same under the Transitions column.

Trying to get property 'workflow_id' of non-object in \administrator\components\com_workflow\Model\TransitionModel.php on line 89

After patching neither entries will be added to the error log

Documentation Changes Required

None

@wilsonge wilsonge changed the base branch from staging to 4.0-dev February 9, 2020 16:34
@wilsonge wilsonge changed the title Undefined property workflows [4.0] Fix undefined property workflows Feb 9, 2020
@wilsonge wilsonge closed this Feb 9, 2020
@wilsonge wilsonge reopened this Feb 9, 2020
@wilsonge wilsonge closed this Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants