mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
fixed variable name in fieldIsAutopopulatable function
This commit is contained in:
@@ -69,11 +69,11 @@ export default
|
|||||||
// this logic makes sure that the form is being added, and that the lookup to be autopopulated is required
|
// this logic makes sure that the form is being added, and that the lookup to be autopopulated is required
|
||||||
function fieldIsAutopopulatable() {
|
function fieldIsAutopopulatable() {
|
||||||
if (parent_scope.mode === "add") {
|
if (parent_scope.mode === "add") {
|
||||||
if (parent_scope[form.fields[field].sourceModel + "_field"].awRequiredWhen &&
|
if (parent_scope[sourceModel + "_field"].awRequiredWhen &&
|
||||||
parent_scope[form.fields[field].sourceModel + "_field"].awRequiredWhen.variable &&
|
parent_scope[sourceModel + "_field"].awRequiredWhen.variable &&
|
||||||
parent_scope[parent_scope[form.fields[field].sourceModel + "_field"].awRequiredWhen.variable]) {
|
parent_scope[parent_scope[sourceModel + "_field"].awRequiredWhen.variable]) {
|
||||||
return true;
|
return true;
|
||||||
} else if (parent_scope[form.fields[field].sourceModel + "_field"].addRequired === true) {
|
} else if (parent_scope[sourceModel + "_field"].addRequired === true) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user