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
Comments
Comment #3
rajab natshahComment #5
smustgrave commentedFine with this change, seems small enough probably don't need test coverage
Thanks!
Comment #7
rajab natshahThank you :) for merging the fix.
Hopping for a release