Fix SQL query when sorting inherited product fields
Some inherited fields are not directly stored in the database, such field use a custom SQL order. When sorting from product, we must reuse the same custom SQL order. issue5318 review30861002
This commit is contained in:
1 parent
12afb24480
commit
10869faf8f
1 file changed
+2
-1
+2
-1
@@ -164,7 +164,8 @@ class TemplateFunction(fields.Function):
|
||||
}
|
||||
else:
|
||||
template = tables['template']
|
||||
return [Column(template, name)]
|
||||
return getattr(Template, name).convert_order(
|
||||
name, tables['template'], Template)
|
||||
return order
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user