Revolution: Creating a new Media Source starts with an error message

Created on 3 Jun 2018  路  6Comments  路  Source: modxcms/revolution

Summary

When creating a new Media Source the dialog instantly gives an error on the "Source Type" field.

Step to reproduce

Create a new Media Source

Observed behavior

It starts with an error because there is no default "Source Type" selected.

Expected behavior

It should not give an error immediately. Give the error when the Media Source is being saved or add an option to set a default source type. Preferable defaulting to "sources.modFileMediaSource".

Environment

MODX 2.6.*, 3

type-frontend bug

All 6 comments

To avoid conflicts during merging fix should be applied to 3.x version where media sources already refactored.

Confirmed in MODX 3
2018-07-23_12-56-59

To fix this issue it's best to introduce a new setting for the media source source type: default_media_source_type with a default value of sources.modFileMediaSource.
This way users can change the default source type.

Can we rename "sources.modFileMediaSource"? Now it confused
image

@meshkov thanks for taking time sharing your suggestion, can you open a new issue for your suggestion because this issue is closed and it might go unnoticed.

Was this page helpful?
0 / 5 - 0 ratings