Merge pull request #18209 from liviuconcioiu/18160
Fix #18160 - Check if hostname exists
This commit is contained in:
commit
1d267483ad
@ -16,7 +16,7 @@
|
||||
* @return {bool} whether the form is validated or not
|
||||
*/
|
||||
function checkAddUser (theForm) {
|
||||
if (theForm.elements.hostname.value === '') {
|
||||
if (theForm.elements.hostname && theForm.elements.hostname.value === '') {
|
||||
alert(Messages.strHostEmpty);
|
||||
theForm.elements.hostname.focus();
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user