Describe the bug
when you create/edit a host and fill in port, after removing the port and submitting you'd get 422 because port value is set to '' and the server doesn't accept it.
To Reproduce
Steps to reproduce the behavior:
open hosts page
edit a host
fill port
click submit
edit the host again
remove port
click submit
Expected behavior
port should be set to null, preferably along other fields
Describe the bug when you create/edit a host and fill in port, after removing the port and submitting you'd get 422 because port value is set to '' and the server doesn't accept it.
To Reproduce Steps to reproduce the behavior:
Expected behavior port should be set to null, preferably along other fields