Skip to content

warning if sleeping hat timerange but no date set

- requested to merge sleeping_hat_fix into master

Closes #632 (closed)

What does this MR do?

Prevents from saving a sleeping hat if it said that you are away for a period of time but no complete time is set. Show's warning and doesn't save.

Zeitraum_fehler

To correct wrong data :

UPDATE fs_foodsaver SET sleep_status=2 WHERE sleep_status = 1 and (sleep_from = '0000-00-00' or sleep_until = '0000-00-00')

corrected_data

How confident are you it won't break things if deployed?

very

Links to related issues

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • joined #foodsharing-beta channel at https://slackin.yunity.org
  • added an entry to CHANGELOG.md (description, merge request link, username(s))
Edited by Chris Oelmueller

Merge request reports