Pogues icon indicating copy to clipboard operation
Pogues copied to clipboard

Duration fields with `0` are not saved / not reloaded

Open romaintailhurat opened this issue 10 months ago • 1 comments

For Duration options "hours/minutes" and "years/months", the values are not saved / reloaded when getting back to a questionnaire if the values are 0.

To reproduce:

  • create a question with a simple / duration answer type
  • fill min or max with zeroes
  • save & reload the questionnaires
  • 💥 all the zeroes have disappear

romaintailhurat avatar Apr 22 '24 09:04 romaintailhurat

Maybe in the code, 0 is equivalent to null and causes this issue

laurentC35 avatar Apr 22 '24 09:04 laurentC35

Fixed in 1.5.12-rc7-duration-0

romaintailhurat avatar May 14 '24 08:05 romaintailhurat