Explorar o código

HUE-2857 [search] Fix document loading problem with big IDs from Solr

Enrico Berti %!s(int64=10) %!d(string=hai) anos
pai
achega
2a6ad96
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      apps/search/src/search/templates/search.mako

+ 4 - 0
apps/search/src/search/templates/search.mako

@@ -1864,6 +1864,7 @@ ${ dashboard.layout_skeleton() }
 <link rel="stylesheet" href="${ static('desktop/ext/css/hue-charts.css') }">
 <link rel="stylesheet" href="${ static('desktop/ext/chosen/chosen.min.css') }">
 
+<script src="${ static('desktop/js/hue.json.js') }" type="text/javascript" charset="utf-8"></script>
 <script src="${ static('desktop/ext/js/moment-with-locales.min.js') }" type="text/javascript" charset="utf-8"></script>
 
 ${ dashboard.import_layout(True) }
@@ -1904,6 +1905,9 @@ ${ dashboard.import_charts() }
 </style>
 
 <script type="text/javascript" charset="utf-8">
+
+JSON.parse = JSON.bigdataParse; // this is to avoid problems with hue Solr IDs
+
 var viewModel;
 
 nv.dev = false;