mampf
mampf copied to clipboard
Wrong media types in quiz editor
The search form in the quiz editor which is used for selection of questions/remarks in a quiz now has an "all" media button. When this is selected, media of all types (not only questions and reamrks) are searched, but hovering over the results (of wrong type) then results in an exception:
undefined method `locale_with_inheritance' for nil:NilClass I18n.locale = @quizzable.locale_with_inheritance
/usr/src/app/app/controllers/media_controller.rb:488:in `fill_quizzable_preview'
The "all" button should be removed in this form, and exception handling should be improved.