Commit 71d31df4 authored by KarenS's avatar KarenS

#112947 fix weight sql typo, patch by beginner

parent f3fdae4a
......@@ -203,7 +203,7 @@ function fieldgroup_groups($content_type, $sorted = FALSE) {
$result = db_query("SELECT fi.*, g.group_name FROM {node_group} g ".
"INNER JOIN {node_group_fields} f ON f.type_name = g.type_name AND f.group_name = g.group_name ".
"INNER JOIN {node_field_instance} fi ON fi.field_name = f.field_name AND fi.type_name = f.type_name ".
"ORDER BY fi.weight");
"ORDER BY nfi.weight");
while ($field = db_fetch_array($result)) {
$groups[$field['type_name']][$field['group_name']]['fields'][$field['field_name']] = $field;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment