From 882b6c68d408c0691d621724696f18c8c92e3214 Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <legac@cppm.in2p3.fr>
Date: Thu, 6 Dec 2012 19:56:20 +0100
Subject: [PATCH] Bug fixed in _encode_query.

---
 modules/plugin_dbui/dbsvc.py | 4 ++++
 static/plugin_dbui/CHANGELOG | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/modules/plugin_dbui/dbsvc.py b/modules/plugin_dbui/dbsvc.py
index cde6354d..3018f58e 100644
--- a/modules/plugin_dbui/dbsvc.py
+++ b/modules/plugin_dbui/dbsvc.py
@@ -114,6 +114,10 @@ class DbSvc(BaseSvc):
 
         """ 
         query = ""
+        
+        if not li:
+            return query
+        
         for el in li:
             
             # transform bracket as db.table1.field1
diff --git a/static/plugin_dbui/CHANGELOG b/static/plugin_dbui/CHANGELOG
index cc17b365..742a34ce 100644
--- a/static/plugin_dbui/CHANGELOG
+++ b/static/plugin_dbui/CHANGELOG
@@ -1,7 +1,9 @@
 --------------------------------- CHANGE LOG ----------------------------------
 
 HEAD
+  - Bug fixed
   - Improve PanelWithUrlSelector class (selectorTitle, selectorRegion)
+  - The plugin pGridExport is replaced by pGridExpertMemu.
   
 0.4.9.7 (Nov 2012)
   - Major release with several improvements.
-- 
GitLab