mampf icon indicating copy to clipboard operation
mampf copied to clipboard

Wrong media types in quiz editor

Open fosterfarrell9 opened this issue 2 years ago • 2 comments

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.

fosterfarrell9 avatar May 10 '23 17:05 fosterfarrell9

Also, searching Questions as a non-admin editor or teacher will not give any results; and in the media search in the admin area, you cannot even select "questions as type. These are all regressions introduced in #420.

fosterfarrell9 avatar May 11 '23 20:05 fosterfarrell9

@fosterfarrell9 Did you fix all aspects of this issue in #506?

Splines avatar Jun 07 '23 13:06 Splines

Yes, this can be closed via #506.

fosterfarrell9 avatar Feb 24 '25 14:02 fosterfarrell9