Commit 042cb5a
committed
Reject invalid priority labels in SetPriority
SetPriority converts its argument to a number before storing, so a value
that was neither a number nor a configured PriorityAsString label was
silently coerced to 0. The web forms use numeric inputs, but other callers
(the REST2 API, the CLI, scrips) could still zero out a priority with a bad
value. Return an error and leave the priority unchanged instead.1 parent 6d80548 commit 042cb5a
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3379 | 3379 | | |
3380 | 3380 | | |
3381 | 3381 | | |
| 3382 | + | |
3382 | 3383 | | |
3383 | 3384 | | |
3384 | | - | |
| 3385 | + | |
3385 | 3386 | | |
3386 | 3387 | | |
3387 | 3388 | | |
| |||
0 commit comments