summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGuillaume (ioguix) de Rorthais2010-09-28 00:02:04 +0000
committerGuillaume (ioguix) de Rorthais2010-09-28 00:02:04 +0000
commit32888a89e4faa5dd2ca90f6b3090f2e537b72241 (patch)
tree7b5de607df0bc3ada4f9a4b1bda27e9a818aba00 /js
parentea73ca2dc447b36eb080e4c026f31a223122a09c (diff)
Fix multi bug in auto-complete value on insert/update
* explicitly not support multi FK constr, only deal with the first one. marked as FIXME * some bad escaped vars were failing the auto-complete on very weird table/field names * some cleanup
Diffstat (limited to 'js')
-rw-r--r--js/ac_insert_row.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/ac_insert_row.js b/js/ac_insert_row.js
index cd59e2c5..5ca85efa 100644
--- a/js/ac_insert_row.js
+++ b/js/ac_insert_row.js
@@ -53,7 +53,8 @@ function selectVal(index) {
function openlist(e) {
var elt = jQuery(e);
var attnum = elt.attr('id').match(/\d+/)[0];
- var conid = attrs['attr_'+attnum];
+ /* FIXME we only support the first FK constraint of the field */
+ var conid = attrs['attr_'+attnum][0];
var constr = constrs["constr_" + conid];