mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
fix for setting scan job template project/playbook
the logic for a scan job was also getting caught for a run job w/ a missing project
This commit is contained in:
parent
d56317a161
commit
30951f4b31
@ -155,7 +155,7 @@ angular.module('JobTemplatesHelper', ['Utilities'])
|
||||
|
||||
scope.can_edit = data.summary_fields.user_capabilities.edit;
|
||||
|
||||
if ((!scope.project || scope.project === "") && (!scope.playbook || scope.playbook === "")) {
|
||||
if (scope.job_type.value === "scan" && (!scope.project || scope.project === "") && (!scope.playbook || scope.playbook === "")) {
|
||||
scope.resetProjectToDefault();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user