[tbord] Fix RQL to only display component archive unit
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Mar 2017 14:36:10 +0200
changeset 246 38cbed1f3fdb
parent 245 b8300df855e6
child 247 0c8df6517501
[tbord] Fix RQL to only display component archive unit i.e. those that are not linked to a parent through the seda_archive_unit relation. Related to #17066578
cubicweb_sherpa/views/management.py
--- a/cubicweb_sherpa/views/management.py	Wed Mar 29 13:41:54 2017 +0200
+++ b/cubicweb_sherpa/views/management.py	Wed Mar 29 14:36:10 2017 +0200
@@ -43,6 +43,7 @@
                  'X modification_date XMD, X created_by XU?, X title XT, '
                  'X owned_by U, U eid %(u)s', 'profiles'),
                 ('Any X,XMD,XU,XUA ORDERBY XMD DESC WHERE X is SEDAArchiveUnit, '
+                 'NOT X seda_archive_unit P, '
                  'X modification_date XMD, X created_by XU?, X user_annotation XUA, '
                  'X owned_by U, U eid %(u)s', 'profiles'),
                 ('Any X,XMD,XU ORDERBY XMD DESC WHERE X is AuthorityRecord, '