merge stable
authorsylvain.thenault@logilab.fr
Mon, 18 May 2009 10:54:48 +0200
branchstable
changeset 1834 c153913924a5
parent 1833 c50245fb9ac2 (current diff)
parent 1829 f54710fcdd62 (diff)
child 1835 67bad6bfefae
child 1836 d3f0c6e868ef
merge
--- a/web/views/actions.py	Mon May 18 10:09:06 2009 +0200
+++ b/web/views/actions.py	Mon May 18 10:54:48 2009 +0200
@@ -9,7 +9,7 @@
 from cubicweb.vregistry import objectify_selector
 from cubicweb.selectors import (EntitySelector,
     one_line_rset, two_lines_rset, one_etype_rset, relation_possible,
-    non_final_entity,
+    nonempty_rset, non_final_entity,
     authenticated_user, match_user_groups, match_search_state,
     has_permission, has_add_permission,
     )
@@ -74,7 +74,7 @@
     if accept match.
     """
     id = 'select'
-    __select__ = match_search_state('linksearch') & match_searched_etype()
+    __select__ = match_search_state('linksearch') & nonempty_rset() & match_searched_etype()
 
     title = _('select')
     category = 'mainactions'