You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found some public API gaps in DNADesign\Elemental\TopPage\DataExtension related to the fixedTopPageID feature.
The only public API that is available related to this is withFixedTopPage() which is fine as this covers the majority case but we should also have public API for the following methods:
getFixedTopPageID() - currently exists, but is protected
setFixedTopPageID() - method is missing
These two methods are needed to properly integrate this feature with other features that use the onBeforeAction and onAfterAction pattern such as copyToLocale.
How to reproduce
Search for the following methods in DNADesign\Elemental\TopPage\DataExtension:
Expected
getFixedTopPageID() - method is public
setFixedTopPageID() - method is public
Actual
getFixedTopPageID() - currently exists, but is protected
setFixedTopPageID() - method is missing
Possible Solution
Ideally:
getFixedTopPageID() - change method to public
setFixedTopPageID() - add this method as public
less ideally but also workable:
change fixedTopPageID to protected
Additional Context
No response
Validations
Check that there isn't already an issue that reports the same bug
Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)
The text was updated successfully, but these errors were encountered:
Module version(s) affected
5.2.4
Description
Found some public API gaps in
DNADesign\Elemental\TopPage\DataExtension
related to thefixedTopPageID
feature.The only public API that is available related to this is
withFixedTopPage()
which is fine as this covers the majority case but we should also have public API for the following methods:getFixedTopPageID()
- currently exists, but isprotected
setFixedTopPageID()
- method is missingThese two methods are needed to properly integrate this feature with other features that use the
onBeforeAction
andonAfterAction
pattern such as copyToLocale.How to reproduce
Search for the following methods in
DNADesign\Elemental\TopPage\DataExtension
:Expected
getFixedTopPageID()
- method is publicsetFixedTopPageID()
- method is publicActual
getFixedTopPageID()
- currently exists, but isprotected
setFixedTopPageID()
- method is missingPossible Solution
Ideally:
getFixedTopPageID()
- change method topublic
setFixedTopPageID()
- add this method aspublic
less ideally but also workable:
fixedTopPageID
toprotected
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: