Skip to content

Fix term datasource warning when saving in submenu context#791

Merged
dlh01 merged 3 commits intomasterfrom
hotfix/GH-777/current-context
Feb 12, 2021
Merged

Fix term datasource warning when saving in submenu context#791
dlh01 merged 3 commits intomasterfrom
hotfix/GH-777/current-context

Conversation

@dlh01
Copy link
Copy Markdown
Member

@dlh01 dlh01 commented Feb 7, 2021

The $current_context property is typically set by \Fieldmanager_Context_Storable::save(), which the submenu context doesn't use. However, the term datasource expects it to be present anyway, and a warning results when it isn't.

Fixes #777.

dlh01 added 2 commits February 7, 2021 02:21
This property has been set dynamically since its introduction with 8d061d3.
This property is typically set by `\Fieldmanager_Context_Storable::save()`, which the submenu context doesn't use. However, the term datasource expects it to be present anyway, and a warning results when it isn't.
Copy link
Copy Markdown
Contributor

@mboynes mboynes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice find!

@dlh01 dlh01 merged commit 039fe6e into master Feb 12, 2021
@dlh01 dlh01 deleted the hotfix/GH-777/current-context branch February 12, 2021 20:00
@dlh01 dlh01 added this to the 1.4.0 milestone Jan 6, 2022
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.

Datasource Term throws a warning on save in PHP 7.4

2 participants