Fixed bug in xCAT-UI where empty inputs are not set as empty values in the policy table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16810 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -326,26 +326,37 @@ function openCreateUserDialog(data) { | ||||
|                 var args = ""; | ||||
|                 if (usrName) { | ||||
|                     args += ' policy.name=' + usrName; | ||||
|                 } if (host) { | ||||
|                     args += " policy.host='" + host + "'"; | ||||
|                 } if (parameters) { | ||||
|                     args += " policy.parameters='" + parameters + "'"; | ||||
|                 } if (nodeRange) { | ||||
|                     args += " policy.noderange='" + nodeRange + "'"; | ||||
|                 } if (rule) { | ||||
|                     args += ' policy.rule=' + rule; | ||||
|                 } if (disable) { | ||||
|                     args += ' policy.disable=' + disable; | ||||
|                 }  | ||||
|                 } | ||||
|                  | ||||
|                 // Handle cases where there are comments and no comments | ||||
|                 // Handle cases where there are value or no value | ||||
|                 if (host) { | ||||
|                     args += " policy.host='" + host + "'"; | ||||
|                 } else { | ||||
|                 	args += " policy.host=''"; | ||||
|                 } | ||||
|                  | ||||
|                 if (parameters) { | ||||
|                     args += " policy.parameters='" + parameters + "'"; | ||||
|                 } else { | ||||
|                 	args += " policy.parameters=''"; | ||||
|                 } | ||||
|                  | ||||
|                 if (nodeRange) { | ||||
|                     args += " policy.noderange='" + nodeRange + "'"; | ||||
|                 } else { | ||||
|                 	args += " policy.noderange=''"; | ||||
|                 } | ||||
|  | ||||
|                 if (comments) { | ||||
|                     args += " policy.comments='" + comments + "'"; | ||||
|                 } else { | ||||
|                 	args += " policy.comments=''"; | ||||
|                 } | ||||
|                  | ||||
|                 // Handle cases where there are commands and no commands | ||||
|                 if (commands) { | ||||
|                     args += " policy.commands='" + commands + "'"; | ||||
|                 } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user