Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After updating "Media" module to latest 7.x-2.x version this error became appear in Media modal window:
Notice: Undefined index: multiselect in template_preprocess_media_views_view_media_browser() (line 130 of sites/all/modules/contrib/media/media.views.inc).
Comments
Comment #2
dmytro-aragornHere is a patch
Comment #3
joseph.olstadthat code I believe is to support bulk upload using multiform and plupload.
alternatively you can enable the multiform module following the quick install guide.
however yes, lets look at this patch.
couple of suggestions:
rather than !empty() (negative is TRUE)
could use a positive is TRUE condition like isset()
Also, we could alternatively put a notice message in the watchdog about optionally installing plupload /multiform for bulk upload ability.
Thanks for the patch! lets trigger the tests.
Comment #4
harshil.maradiya CreditAttribution: harshil.maradiya commentedComment #5
joseph.olstadRTBC patch 3
Comment #6
joseph.olstadactually, this patch should be
(isset($blah) && $blah)
to check for true.
I will reroll this.
Comment #7
joseph.olstadComment #8
joseph.olstadnew patch
ah ben tabarn#k
Comment #10
joseph.olstadComment #11
joseph.olstadComment #12
joseph.olstadchange title
Comment #13
joseph.olstadComment #14
joseph.olstadThx