Closed pack254 closed 5 months ago
@pack254 linked PR has been merged, will be auto-tagged shortly
Note I left a comment on https://github.com/silverstripe/silverstripe-admin/pull/1670#pullrequestreview-1857624066 that the site banner possibly isn't working correctly, so you'll want to validate this on your local
Fixing that would be a totally separate issue and it's not a module that the open-source team look after
Note this hasn't released just yet because of a CI failure in silverstripe/admin which is being tracked here
This has now released as 1.13.21
Module version(s) affected
1.13.19
Description
I have found an issue in
silverstripe/admin
version1.13.19
when I did the upgrade security patches. this version it breaks the ModelAdmin which is defined using the custom url segment approach e.g.This patch 1.13.19 appears to break potentially caused from line 662 ModelAdmin.php is changed from
modelClass
tomodelTab
. In a nuthshell, any module that uses this approach will break i.e. SiteBanner moduleHow to reproduce
This can be reproduced by using the
silverStripe/admin
version1.13.19
andnzta/silverstripe-sitebanner
version3.0.1
after runningcomposer install && composer dev-build flush=all
logged in to CMS and then go to Site Banner tab at the left panel, so you will see this error.Possible Solution
revert code back to
$importer = new $importerClass($this->modelClass);
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)PRs