From a794b749290de2dce329f4ce081034a54f3aaae6 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 5 Apr 2012 11:54:47 -0700 Subject: [PATCH] bug 14411: Add 'None' option for no host OS preference status 14411: resolved fixed reviewed-by: jessica --- ui/scripts/system.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 25031bae352..f6087a18251 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}); });