From 48042d391f75e7da5798be658e64dbfbafdf4bcd Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <renaud.legac@free.fr>
Date: Sat, 28 Jan 2012 18:11:59 +0100
Subject: [PATCH] Bug fixed

---
 modules/plugin_dbui/dbsvc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/plugin_dbui/dbsvc.py b/modules/plugin_dbui/dbsvc.py
index ec8d5b28..e0437b02 100644
--- a/modules/plugin_dbui/dbsvc.py
+++ b/modules/plugin_dbui/dbsvc.py
@@ -193,7 +193,7 @@ class DbSvc(BaseSvc):
             record[key] = db[table][id][field] 
 
             if is_foreign_field(db[table][field]):
-                k_table, k_field, k_query = get_foreign_data(db[table][field])
+                k_table, k_field, k_query = get_foreign_field(db[table][field])
                 
                 k_key = encode_field(k_table, k_field)
                 k_id = record[key]
-- 
GitLab