|
4893 | 4893 | var array1 = []; |
4894 | 4894 | array1.push("&name=" +todb(args.data.name)); |
4895 | 4895 | array1.push("&dns1=" + todb(args.data.dns1)); |
4896 | | - array1.push("&dns2=" + todb(args.data.dns2)); //dns2 can be empty ("") when passed to API |
| 4896 | + array1.push("&dns2=" + todb(args.data.dns2)); //dns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank. |
| 4897 | + array1.push("&ip6dns1=" + todb(args.data.ip6dns1)); //p6dns1 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank. |
| 4898 | + array1.push("&ip6dns2=" + todb(args.data.ip6dns2)); //ip6dns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank. |
4897 | 4899 |
|
4898 | 4900 | if (selectedZoneObj.networktype == "Advanced" && args.data.guestcidraddress) { |
4899 | 4901 | array1.push("&guestcidraddress=" + todb(args.data.guestcidraddress)); |
4900 | 4902 | } |
4901 | 4903 |
|
4902 | 4904 | array1.push("&internaldns1=" + todb(args.data.internaldns1)); |
4903 | | - array1.push("&internaldns2=" + todb(args.data.internaldns2)); //internaldns2 can be empty ("") when passed to API |
| 4905 | + array1.push("&internaldns2=" + todb(args.data.internaldns2)); //internaldns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank. |
4904 | 4906 | array1.push("&domain=" + todb(args.data.domain)); |
4905 | 4907 | array1.push("&localstorageenabled=" + (args.data.localstorageenabled == 'on')); |
4906 | 4908 | $.ajax({ |
|
4938 | 4940 | allocationstate: { label: 'label.allocation.state' }, |
4939 | 4941 | dns1: { label: 'label.dns.1', isEditable: true, validation: { required: true } }, |
4940 | 4942 | dns2: { label: 'label.dns.2', isEditable: true }, |
| 4943 | + ip6dns1: { label: 'IPv6 DNS1', isEditable: true }, |
| 4944 | + ip6dns2: { label: 'IPv6 DNS2', isEditable: true }, |
4941 | 4945 | internaldns1: { label: 'label.internal.dns.1', isEditable: true, validation: { required: true } }, |
4942 | 4946 | internaldns2: { label: 'label.internal.dns.2', isEditable: true }, |
4943 | 4947 | domainname: { label: 'label.domain' }, |
|
4950 | 4954 | localstorageenabled: { |
4951 | 4955 | label: 'label.local.storage.enabled', |
4952 | 4956 | isBoolean: true, |
4953 | | - isEditable: true, |
4954 | | - converter:cloudStack.converters.toBooleanText |
| 4957 | + isEditable: true, |
| 4958 | + converter:cloudStack.converters.toBooleanText |
4955 | 4959 | } |
4956 | 4960 | } |
4957 | 4961 | ], |
|
0 commit comments