[Groonga-commit] groonga/groonga-admin at 83e06fd [master] Support indexed _key

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 5 16:57:53 JST 2014


Kouhei Sutou	2014-11-05 16:57:53 +0900 (Wed, 05 Nov 2014)

  New Revision: 83e06fd0ca158908eee0b3d5d98bba8bd96e54fb
  https://github.com/groonga/groonga-admin/commit/83e06fd0ca158908eee0b3d5d98bba8bd96e54fb

  Message:
    Support indexed _key

  Modified files:
    app/scripts/controllers/table-search-controller.js

  Modified: app/scripts/controllers/table-search-controller.js (+6 -1)
===================================================================
--- app/scripts/controllers/table-search-controller.js    2014-11-05 16:55:14 +0900 (2c496d5)
+++ app/scripts/controllers/table-search-controller.js    2014-11-05 16:57:53 +0900 (3a5dd58)
@@ -149,7 +149,12 @@ angular.module('groongaAdminApp')
         }
         var matchColumns = $scope.parameters.match_columns;
         column.sources.forEach(function(source) {
-          var localName = source.split('.')[1];
+          var localName;
+          if (source.indexOf('.') === -1) {
+            localName = '_key';
+          } else {
+            localName = source.split('.')[1];
+          }
           var inUse = true;
           if (matchColumns) {
             inUse = matchColumns.indexOf(localName) !== -1;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index