Problem/Motivation

Getting duplicates name of media bundles.

Steps to reproduce

When installing with Drush
Then the output will bring the following in the terminal

[notice] <em class="placeholder">Publish state</em> hidden for: Media types (Audio, Audio, Audio, Audio, Audio, Audio, File, File, File, File, File, File, Gallery, Gallery, Gallery, Gallery, Gallery, Image, Image, Image, Image, Image, Image, Remote video, Remote video, Remote video, Remote video, Remote video, Video, Video, Video, Video, Video, Video) [notice] <em class="placeholder">Unpublish state</em> hidden for: Media types (Audio, Audio, Audio, Audio, Audio, Audio, File, File, File, File, File, File, Gallery, Gallery, Gallery, Gallery, Gallery, Image, Image, Image, Image, Image, Image, Remote video, Remote video, Remote video, Remote video, Remote video, Video, Video, Video, Video, Video, Video)

Proposed resolution

Pass with array_unique($bundles)

After the fix:

 [notice] <em class="placeholder">Publish state</em> hidden for: Media types (Audio, File, Gallery, Image, Remote video, Video)
 [notice] <em class="placeholder">Unpublish state</em> hidden for: Media types (Audio, File, Gallery, Image, Remote video, Video)

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Status: Active » Needs review

smustgrave’s picture

Status: Needs review » Fixed

Fine with this change, seems small enough probably don't need test coverage

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Thank you :) for merging the fix.
Hopping for a release

Status: Fixed » Closed (fixed)

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