Fix wrong join in migration of Work.parent
issue4938
This commit is contained in:
1 parent
a92a48610a
commit
89d6c7971d
1 file changed
+1
-1
@@ -153,7 +153,7 @@ class Work(ModelSQL, ModelView):
|
||||
query = project.join(timesheet,
|
||||
condition=project.work == timesheet.id
|
||||
).join(second_project,
|
||||
condition=timesheet.parent == second_project.id
|
||||
condition=timesheet.parent == second_project.work
|
||||
).select(project.id, second_project.id)
|
||||
cursor.execute(*query)
|
||||
for id_, parent in cursor.fetchall():
|
||||
|
||||
Reference in new issue
Block a user