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/version.py       Fri Jul 10 17:26:52 2009 +0200
+++ b/entities/version.py       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,
                      vocabconstraints=True):
-        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

prioritynormal
typebug
done in1.1.0
load0.100
load left0.000
closed by<not specified>