silverstripe / silverstripe-admin

Silverstripe Admin Component
BSD 3-Clause "New" or "Revised" License
25 stars 91 forks source link

FIX Set the CSV importer based on the tab, not the model #1676

Closed GuySartorelli closed 4 months ago

GuySartorelli commented 4 months ago

Description

Confirmed the bug affects CMS 4 as well, so fixing it there.

Manual testing steps

Copy the SecurityAdmin from CMS 5 and plonk it into CMS 4, then try to import a member. If you add it as a separate class you'll want to set a different url_segment and menu_title so you know what one you're looking at. Note that there's syntax in there that needs to run on PHP 8.1 - but that doesn't affect the actual code fix which as per CI is compatible with 7.4

Issues

Pull request checklist