atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject incubator-atlas git commit: ATLAS-1638: fix - ui sends same GUID while assigning a tag to multiple entities
Date Mon, 06 Mar 2017 06:50:46 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master 40e2e37d4 -> e54fe04d7


ATLAS-1638: fix - ui sends same GUID while assigning a tag to multiple entities

Signed-off-by: Madhan Neethiraj <madhan@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/e54fe04d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/e54fe04d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/e54fe04d

Branch: refs/heads/master
Commit: e54fe04d7a87d7d3ebaf780dd0f7b388e030d91a
Parents: 40e2e37
Author: kevalbhatt <kbhatt@apache.org>
Authored: Mon Mar 6 11:11:48 2017 +0530
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Sun Mar 5 22:36:26 2017 -0800

----------------------------------------------------------------------
 dashboardv2/public/js/views/search/SearchResultLayoutView.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e54fe04d/dashboardv2/public/js/views/search/SearchResultLayoutView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/search/SearchResultLayoutView.js b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
index 0cee90f..27f692b 100644
--- a/dashboardv2/public/js/views/search/SearchResultLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
@@ -165,7 +165,7 @@ define(['require',
                     this.searchCollection.find(function(item) {
                         if (item.get('isEnable')) {
                             var term = [];
-                            var obj = model.toJSON();
+                            var obj = item.toJSON();
                             that.arr.push({
                                 id: obj.guid,
                                 model: obj
@@ -481,13 +481,13 @@ define(['require',
             getTagList: function(guid, multiple) {
                 var that = this;
                 if (!multiple || multiple.length === 0) {
-                    var modal = this.searchCollection.find(function(item) {
-                        var obj = model.toJSON();
+                    var model = this.searchCollection.find(function(item) {
+                        var obj = item.toJSON();
                         if (obj.guid === guid) {
                             return true;
                         }
                     });
-                    if (modal) {
+                    if (model) {
                         var obj = model.toJSON();
                     } else {
                         return [];


Mime
View raw message