entity.py
branchstable
changeset 6307 c07763c59fcb
parent 6258 9b5c008267b0
child 6317 0d4dd5f6f05c
--- a/entity.py	Wed Sep 22 18:17:40 2010 +0200
+++ b/entity.py	Wed Sep 22 18:18:29 2010 +0200
@@ -492,7 +492,7 @@
         # in linksearch mode, we don't want external urls else selecting
         # the object for use in the relation is tricky
         # XXX search_state is web specific
-        if 'base-url' not in kwargs and \
+        if 'base_url' not in kwargs and \
                getattr(self._cw, 'search_state', ('normal',))[0] == 'normal':
             kwargs['base_url'] = self.cw_metainformation()['source'].get('base-url')
             use_ext_id = bool(kwargs['base_url'])