Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving view causes internal server error #1229

Open
jochenklar opened this issue Jan 20, 2025 · 0 comments
Open

Saving view causes internal server error #1229

jochenklar opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
Milestone

Comments

@jochenklar
Copy link
Member

jochenklar commented Jan 20, 2025

Description / Beschreibung

In a view, using a variable, which is not assigned, in a tag causes a 500 when saving the view.

Expected behaviour / Erwartetes Verhalten

A validation error is shown.

Steps to reproduce / Schritte zum Reproduzieren

Create a view with:

{% load view_tags %}
{% render_set_value lol 'project/dataset/id' %}

Saving gives the exeption:

  File "/.../rdmo/rdmo/views/templatetags/view_tags.py", line 72, in get_set_value
    set_index = set.get('set_index')
                ^^^^^^^
AttributeError: 'str' object has no attribute 'get'

Reference

@jochenklar jochenklar changed the title V Saving view causes internal server error Jan 20, 2025
@jochenklar jochenklar self-assigned this Jan 20, 2025
@jochenklar jochenklar added this to the RDMO 2.3.0 milestone Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants