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:
Michael Abashian
2017-06-09 10:18:35 -04:00
committed by GitHub

View File

@@ -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') {