mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Fix issue with lookup "Select" button
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc function
|
* @ngdoc function
|
||||||
@@ -244,7 +244,7 @@ export default
|
|||||||
scope.selectAction = function () {
|
scope.selectAction = function () {
|
||||||
var i, found = false;
|
var i, found = false;
|
||||||
for (i = 0; i < scope[list.name].length; i++) {
|
for (i = 0; i < scope[list.name].length; i++) {
|
||||||
if (scope[list.name][i].checked === '1' || scope[list.name][i].checked===1) {
|
if (scope[list.name][i].checked === '1' || scope[list.name][i].checked===1 || scope[list.name][i].checked === true) {
|
||||||
found = true;
|
found = true;
|
||||||
parent_scope[field] = scope[list.name][i].id;
|
parent_scope[field] = scope[list.name][i].id;
|
||||||
if (parent_scope[form.name + '_form'] && form.fields[field] && form.fields[field].sourceModel) {
|
if (parent_scope[form.name + '_form'] && form.fields[field] && form.fields[field].sourceModel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user