web/views/actions.py
changeset 1889 874a055c373b
parent 1829 f54710fcdd62
child 1977 606923dff11b
--- a/web/views/actions.py	Thu May 21 00:44:57 2009 +0200
+++ b/web/views/actions.py	Thu May 21 00:50:24 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'