Problem/Motivation

The module provides this warning message:

Please be aware that if file extensions overlap between the media types that are
available in this upload form, that the media entity will be assigned
automatically to one of these types.

Imho this only makes sense if there are more than one media types configured for the bulk upload form. So if only one media type is configured it would be better to not show this warning, since it may confuse the user.

Steps to reproduce

Configure bulk upload form with only one media type
See the warning message that is designed for multitple media types only

Proposed resolution

check for configured media types
if only one, do not show the warning

Remaining tasks

patch

User interface changes

warning message only for form with multiple media types configured

API changes

none

Data model changes

Comments

stefan.korn created an issue. See original summary.

stefan.korn’s picture

Assigned: stefan.korn » Unassigned
Status: Active » Needs review
StatusFileSize
new2.34 KB
stefan.korn’s picture

stefan.korn’s picture

sorry for this mess of patch files. My IDE choose to produce UTF-16 files, which made trouble using them via composer. Now I am back to UTF-8 with this patch.

  • Nitebreed committed 8e124ca on 8.x-2.x authored by stefan.korn
    Issue #3227557 by stefan.korn: Show warning message about media types...

  • Nitebreed committed 50563c1 on 8.x-1.x authored by stefan.korn
    Issue #3227557 by stefan.korn: Show warning message about media types...
nitebreed’s picture

Status: Needs review » Fixed

Thanks, committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.