-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
When editing official proposals, title and body appear blank #7031
Comments
oriolgual
added a commit
that referenced
this issue
Dec 17, 2020
8 tasks
oriolgual
added a commit
that referenced
this issue
Dec 17, 2020
oriolgual
added a commit
that referenced
this issue
Dec 18, 2020
oriolgual
added a commit
that referenced
this issue
Dec 18, 2020
tramuntanal
pushed a commit
that referenced
this issue
Dec 21, 2020
mrcasals
pushed a commit
that referenced
this issue
Dec 21, 2020
tramuntanal
pushed a commit
that referenced
this issue
Dec 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
When editing official proposals, title and body appear blank although they were filled when creating the proposals.
The problem is in
decidim-proposals/app/views/decidim/proposals/admin/proposals/_form.html.erbL8
file. In the mentioned line thevalue
parameter was being passed alone, but then, a newhashtaggable: true
parameter was added.This new parameter provokes an unwanted behavior later in
decidim-core/lib/decidim/form_builder.rb#hashtaggable_text_fieldL119
where thevalue
is treated as if it was multi-language withoptions[:value][locale]
butoptions[:value]
is a text field.The origin of the bug is "Fix proposal creation (#6518)" which was merged during the development of v0.23 so the bug is present in
release/0.23-stable
and indevelop
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
An admin should be able to see and modify the title and body of an official proposal without loosing its previous contents.
Screenshots
If applicable, add screenshots to help explain your problem.
Stacktrace
If applicable, add the error stacktrace to help explain your problem.
Extra data (please complete the following information):
Additional context
Add any other context about the problem here. For instance, add Metadecidim link.
The text was updated successfully, but these errors were encountered: