mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
AC-320 free_instances value is no longer being dropped when == 0.
This commit is contained in:
@@ -94,7 +94,7 @@ angular.module('License', ['RestServices', 'Utilities', 'FormGenerator', 'Prompt
|
|||||||
|
|
||||||
function empty(x) {
|
function empty(x) {
|
||||||
var result = false;
|
var result = false;
|
||||||
if (x === null || x === undefined || x == '') {
|
if (x != 0 && (x === null || x === undefined || x == '') ) {
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -146,9 +146,8 @@ angular.module('License', ['RestServices', 'Utilities', 'FormGenerator', 'Prompt
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove anything form the form that is empty
|
|
||||||
for (var fld in form.fields) {
|
for (var fld in form.fields) {
|
||||||
if (data['license_info'][fld]) {
|
if (data['license_info'][fld] !== undefined) {
|
||||||
scope[fld] = data['license_info'][fld];
|
scope[fld] = data['license_info'][fld];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user