From 957fc2de805d6021181bb8eaff4e0163dc54a0c0 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Mon, 22 May 2017 14:23:06 +0200
Subject: [PATCH] [fix] Es: search on block has bad total number

---
 www/plugins/es/js/services/blockchain-services.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/plugins/es/js/services/blockchain-services.js b/www/plugins/es/js/services/blockchain-services.js
index 2c940df13..571f89970 100644
--- a/www/plugins/es/js/services/blockchain-services.js
+++ b/www/plugins/es/js/services/blockchain-services.js
@@ -68,7 +68,7 @@ angular.module('cesium.es.blockchain.services', ['cesium.services', 'cesium.es.h
         hits: hits,
         took: res.took,
         total: res && res.hits && res.hits.total ? (
-          options.excludeCurrent ? res.hits.total-1 : res.hits.total) : 0
+          hasExcludedCurrent ? res.hits.total-1 : res.hits.total) : 0
       };
 
       // Fill avatar
-- 
GitLab