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

static_content in staticQuestion is optional #1576

Open
open-dynaMIX opened this issue Sep 1, 2021 · 3 comments
Open

static_content in staticQuestion is optional #1576

open-dynaMIX opened this issue Sep 1, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@open-dynaMIX
Copy link
Member

The backend doesn't accept an empty string as Static content. On removal of this content, it needs to be set to null.

Steps to reproduce:

  1. Save a question with Static content
  2. Remove the Static content
  3. Saving will now fail because the frontend sets Static content to ""
@Yelinz
Copy link
Member

Yelinz commented Oct 28, 2021

Seems to be a problem with the backend, setting it to null or even " " still returns the blank error

@Yelinz
Copy link
Member

Yelinz commented Oct 28, 2021

The backend should accept an empty string as value, because thats what an empty textarea represents

@Yelinz Yelinz transferred this issue from projectcaluma/ember-caluma Oct 28, 2021
@Yelinz Yelinz added the bug Something isn't working label Oct 28, 2021
@Yelinz Yelinz changed the title [form builder] can't remove static content in static question static_content in staticQuestion is optional Nov 3, 2021
@Yelinz
Copy link
Member

Yelinz commented Nov 3, 2021

See this comment #1577 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants