diff --git a/ui/scripts/system.js b/ui/scripts/system.js index d5ea795187f..0d4e5a90c8c 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -5536,10 +5536,8 @@ var array1 = []; array1.push("&hosttags=" + todb(args.data.hosttags)); - if (args.data.oscategoryid != null) + if (args.data.oscategoryid != null && args.data.oscategoryid != 'None') array1.push("&osCategoryId=" + args.data.oscategoryid); - else //OS is none - array1.push("&osCategoryId=0"); $.ajax({ url: createURL("updateHost&id=" + args.context.hosts[0].id + array1.join("")), @@ -5740,7 +5738,9 @@ async: true, success: function(json) { var oscategoryObjs = json.listoscategoriesresponse.oscategory; - var items = []; + var items = [ + { id: null, description: _l('label.none') } + ]; $(oscategoryObjs).each(function() { items.push({id: this.id, description: this.name}); });