changeset 6070:cd8f77794a03

meta-data.xml: Fix query, select on user-id not collection-id.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 23 May 2013 11:21:58 +0200 (2013-05-23)
parents dcbc06ca5d19
children 038e60fdd49a
files artifacts/doc/conf/meta-data.xml
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Thu May 23 11:18:51 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Thu May 23 11:21:58 2013 +0200
@@ -2637,7 +2637,7 @@
           FROM users u
             JOIN collections c             ON c.user_id = u.id
             JOIN master_artifacts_range ma ON ma.collection_id = c.id
-          WHERE  c.id = ${collection_id}
+          WHERE  u.gid = CAST(${user-id} AS UUID)
             AND ma.gid &lt;&gt; CAST(${artifact-id} AS uuid)
             AND EXISTS (
               SELECT id

http://dive4elements.wald.intevation.org