Validate that everyX values in dailies are integers bounded by 0 and 9999 fixes #8782 (#9268)

* Validate that everyX values are integers bounded by 0 and 9999

* Added client side check

* Updated tests

* Added migration for bad dailies

Near idential to the other task migration.

* fix(typo): camelCase function call
This commit is contained in:
Tyler Nychka
2017-12-05 14:55:32 -05:00
committed by Sabe Jones
parent 8367de34bf
commit bfaa7c0fea
5 changed files with 135 additions and 3 deletions

View File

@@ -102,7 +102,7 @@
| {{ $t(frequency) }}
.form-group
label(v-once) {{ $t('repeatEvery') }}
input(type="number", v-model="task.everyX", min="0", required, :disabled='challengeAccessRequired')
input(type="number", v-model="task.everyX", min="0", max="9999", required, :disabled='challengeAccessRequired')
| {{ repeatSuffix }}
br
template(v-if="task.frequency === 'weekly'")