Closed mandrew closed 3 months ago
Thanks for reporting this - we try to keep on top of those sorts of changes but looks like we dropped the ball on that one. We won't be overriding existing tags, but we'll bump the dependency for the next minor release to help mitigate this somewhat.
I've also opened https://github.com/silverstripe/gha-generate-matrix/issues/93 to update our CI to help us catch this sort of problem ahead of releases going forward.
PR merged
Module version(s) affected
5.2.1
Description
Currently composer install gets the latest version of elemental for any version of v5 framework
"silverstripe/framework": "^5",
which creates issues if you are still running an older version of framework e.g. 5.0.0.I only worked out after reading the release info that as I'm currently working on a v5.0.0 site, I should be using v5.0.4 of elemental. It's a straightforward fix as a Developer, however composer should really handle these dependancies so I don't have to think about it :)
How to reproduce
GET /admin/pages?q%5BFilterClass%5D=DNADesign%5CElemental%5CControllers%5CElementSiteTreeFilterSearch&q%5BTerm%5D=test
Line 57 in /var/www/html/vendor/silverstripe/framework/src/Core/CustomMethods.php
Looks like https://github.com/silverstripe/silverstripe-elemental/pull/1069 was introduced, which means you need to be running v5.1 of the framework for this to not error.
Possible Solution
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)Acceptance criteria
dnadesign/silverstripe-elemental
forsilverstripe/framework
is bumped to the lowest version that doesn't cause an error (only affects next minor release of this module)PR