devilry / trix2

Next generation Trix. Detailed task control and statistics app for better learning outcome.
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Preview view fails due to KeyError #89

Closed torgeirl closed 5 years ago

torgeirl commented 5 years ago

The call to cradmin_legacy's get_preview_data made in trix_admin/views/assignments.py fails due to a KeyError.

The transaction is set to be /a/{roleid}/assignments/preview/{pk} while the URL seems to /a/{courseid}/assignments/preview/.

Elthan commented 5 years ago

When is this error occurring?

torgeirl commented 5 years ago

@Elthan: I believe it's certain previews from the admin view. At least, that what the URL suggests.

Elthan commented 5 years ago

Ok, do you have an example or something I can look at?

torgeirl commented 5 years ago

I guess 5f58c5b2b2c8dacc4d33232068255f192c2a02be might be intended to address this issue.