caluma icon indicating copy to clipboard operation
caluma copied to clipboard

static_content in staticQuestion is optional

Open open-dynaMIX opened this issue 3 years ago • 3 comments

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 ""

open-dynaMIX avatar Sep 01 '21 06:09 open-dynaMIX

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

Yelinz avatar Oct 28 '21 09:10 Yelinz

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

Yelinz avatar Oct 28 '21 09:10 Yelinz

See this comment https://github.com/projectcaluma/caluma/pull/1577#issuecomment-959420192

Yelinz avatar Nov 03 '21 15:11 Yelinz