`/weight` quick action does not accept 0
Summary
/weight
quick action does not accept 0
Steps to reproduce
- Create a new project
- Create a new issue
- Add a weight of 5 via a quick action or sidebar
/weight 5
- Attempt to set a weight of 0 via quick action
/weight 0
Example Project
Need quick action execution to reproduce but this issue is in the state for repro:
What is the current bug behavior?
/weight 0
quick action does nothing
What is the expected correct behavior?
I thought that the quick action would accept 0
and clear the weight just like the sidebar does
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Output of checks
reproduced on GitLab.com v11.9.1-rc3
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Mark Fletcher