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:
Florian Preinstorfer committed 2016-12-15 09:47:50 +01:00
1 parent 12afb24480
commit 10869faf8f
1 file changed
+2 -1
+2 -1
View File
@@ -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