Skip to content

[4.0] Fix undefined property when editing stages/transitions#27874

Merged
richard67 merged 1 commit intojoomla:4.0-devfrom
wilsonge:undefined_property_workflows
Feb 9, 2020
Merged

[4.0] Fix undefined property when editing stages/transitions#27874
richard67 merged 1 commit intojoomla:4.0-devfrom
wilsonge:undefined_property_workflows

Conversation

@wilsonge
Copy link
Copy Markdown
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 title Fix undefined property when editing stages/transitions [4.0] Fix undefined property when editing stages/transitions Feb 9, 2020
@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on a5bca08


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27874.

1 similar comment
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Feb 9, 2020

I have tested this item ✅ successfully on a5bca08


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27874.

@Quy Quy removed the PR-4.0-dev label Feb 9, 2020
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Feb 9, 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27874.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 9, 2020
@richard67 richard67 merged commit 1041d0d into joomla:4.0-dev Feb 9, 2020
@joomla-cms-bot joomla-cms-bot added PR-4.0-dev and removed RTC This Pull Request is Ready To Commit labels Feb 9, 2020
@richard67 richard67 added this to the Joomla 4.0 milestone Feb 9, 2020
@richard67
Copy link
Copy Markdown
Member

Thanks.

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.

4 participants