[Koha-bugs] [Bug 21476] Incorrect filter prevents HTML5 media from playing in the OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 31 13:23:50 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21476

--- Comment #10 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 81713
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81713&action=edit
Bug 21476: Fix YouTube propgation

The loop to find all media has an $isyoutube variable. This was declared
outside the loop and never reset. Once a YouTube video was encountered
all subsequent videos were considered as YouTube. This patch reduces the
scope of the variable and resets per loop.

To test:
1 - Enable HTML5Media and HTML5MediaYouTube
2 - Add 856$u to record for a youtube vido and a pdf (sample record
        attached to bug)
3 - View the record, the Play media tab has two video boxes
4 - Play the second, it fails
5 - Apply patch
6 - View record, Play media should include only one video link

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list