cubicweb-forge #344574 error in unrelated_rql() [resolved]

A strange error appeared in a half-migrated instance (jpl -> forge).

An hotfix was provided by syt but the problem is maybe in a different place. Just for the record:

--- a/entities/       Fri Jul 10 17:26:52 2009 +0200
+++ b/entities/       Fri Jul 10 20:34:43 2009 +0200
@@ -55,7 +55,7 @@ class Version(ProgressMixIn, AnyEntity):

    def unrelated_rql(self, rtype, targettype, role, ordermethod=None,
-        if rtype == 'depends_on' and role == 'subject':
+        if rtype == 'depends_on' and role == 'subject' and self.has_eid():
            return ("DISTINCT Any V2 WITH V2 BEING ((Any V2 WHERE "
                    "V2 version_of P2, V version_of P, P uses P2, "
                    "V eid %(x)s) UNION (Any V2 WHERE V2 version_of P2, "

P.S. a kvm image is available if need

done in1.1.0
load left0.000
closed by<not specified>