mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Merge pull request #6532 from mabashian/fix-jt-edit
Fixed error being raised trying to grab instance group value(s)
This commit is contained in:
@@ -542,7 +542,7 @@ export default
|
|||||||
$scope.formSave = function () {
|
$scope.formSave = function () {
|
||||||
var fld, data = {};
|
var fld, data = {};
|
||||||
$scope.invalid_survey = false;
|
$scope.invalid_survey = false;
|
||||||
|
|
||||||
// Can't have a survey enabled without a survey
|
// Can't have a survey enabled without a survey
|
||||||
if($scope.survey_enabled === true &&
|
if($scope.survey_enabled === true &&
|
||||||
$scope.survey_exists!==true){
|
$scope.survey_exists!==true){
|
||||||
@@ -556,7 +556,7 @@ export default
|
|||||||
try {
|
try {
|
||||||
for (fld in form.fields) {
|
for (fld in form.fields) {
|
||||||
if (form.fields[fld].type === 'select' &&
|
if (form.fields[fld].type === 'select' &&
|
||||||
fld !== 'playbook') {
|
fld !== 'playbook' && $scope[fld]) {
|
||||||
data[fld] = $scope[fld].value;
|
data[fld] = $scope[fld].value;
|
||||||
}
|
}
|
||||||
else if(form.fields[fld].type === 'checkbox_group') {
|
else if(form.fields[fld].type === 'checkbox_group') {
|
||||||
|
|||||||
Reference in New Issue
Block a user