mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 23:47:28 -02:30
Update job_template param naming. Fixes error thrown on transition from job template add => edit state. @NoIssue
This commit is contained in:
@@ -280,7 +280,7 @@
|
|||||||
|
|
||||||
|
|
||||||
function saveCompleted(id) {
|
function saveCompleted(id) {
|
||||||
$state.go('templates.editJobTemplate', {id: id}, {reload: true});
|
$state.go('templates.editJobTemplate', {job_template_id: id}, {reload: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scope.removeTemplateSaveSuccess) {
|
if ($scope.removeTemplateSaveSuccess) {
|
||||||
@@ -426,7 +426,7 @@
|
|||||||
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