getLocalizedData in ModelWithSettings does not fallback when a translation is missing #10690
Labels
Bug:1:Low
A bug that does not have a severe consequence or affects a small number of users.
Milestone
Describe the bug
In
ModelWithSettings.php
, getLocalizedData() does not fallback to the first available piece of data when a translation is missing, so a null value may be used when a fallback is available. This is different from the behaviour in the DataObject implementation.To Reproduce
Steps to reproduce the behavior:
What application are you using?
OJS, OMP or OPS version main
Additional information
getLocalizedData()
for comparison:pkp-lib/classes/core/DataObject.php
Lines 71 to 78 in 10e1b13
pkp-lib/classes/core/traits/LocalizedData.php
Lines 31 to 49 in 10e1b13
PRs
pkp-lib --> #10785
ojs --> pkp/ojs#4585 [TEST ONLY]
The text was updated successfully, but these errors were encountered: