Update job_template param naming. Fixes error thrown on transition from job template add => edit state. @NoIssue

This commit is contained in:
Leigh Johnson 2016-11-11 10:31:45 -05:00
parent 99eb7ff02b
commit 53760be4ae

View File

@ -280,7 +280,7 @@
function saveCompleted(id) {
$state.go('templates.editJobTemplate', {id: id}, {reload: true});
$state.go('templates.editJobTemplate', {job_template_id: id}, {reload: true});
}
if ($scope.removeTemplateSaveSuccess) {
@ -426,7 +426,7 @@
try {
for (fld in form.fields) {
if (form.fields[fld].type === 'select' &&
fld !== 'playbook') {
fld !== 'playbook' && $scope[fld]) {
data[fld] = $scope[fld].value;
}
else if(form.fields[fld].type === 'checkbox_group') {