Skip to content

FIX ModelAdmin::$model_importers alias support#1216

Open
chillu wants to merge 1 commit intosilverstripe:1.8from
silverstripeltd:pulls/1/modeladmin-csv-modelname-alias
Open

FIX ModelAdmin::$model_importers alias support#1216
chillu wants to merge 1 commit intosilverstripe:1.8from
silverstripeltd:pulls/1/modeladmin-csv-modelname-alias

Conversation

@chillu
Copy link
Member

@chillu chillu commented May 17, 2021

Hasn't been considered when introducing aliases rather than class names in $managed_models.

@chillu
Copy link
Member Author

chillu commented May 21, 2021

Same test failures as upstream

@chillu chillu force-pushed the pulls/1/modeladmin-csv-modelname-alias branch from ce9c294 to 477bb23 Compare May 21, 2021 01:49
Hasn't been considered when introducing aliases rather than class names
in $managed_models.

Fixed a regression from when we introduced $modelTab.
This is backwards compatible since $modelTab falls back to $modelClass.

Also improved $model_importers to fall back to the default per model,
rather than requiring definition of *all* models on a non-null value.
@chillu chillu force-pushed the pulls/1/modeladmin-csv-modelname-alias branch from 477bb23 to 81cf409 Compare June 25, 2021 02:16
@chillu chillu changed the base branch from 1 to 1.8 June 25, 2021 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant