- Patch #84117 by misawie: make book outlining work with PostgreSQL.

5.x
Dries Buytaert 2006-09-26 14:14:30 +00:00
parent 24ac1a1fb2
commit 878bb6162c
1 changed files with 1 additions and 1 deletions

View File

@ -861,7 +861,7 @@ function _book_admin_table_tree($node, $depth) {
),
);
$children = db_query(db_rewrite_sql('SELECT n.nid, b.weight FROM {node} n INNER JOIN {book} b ON n.vid = b.vid WHERE b.parent = %d ORDER BY b.weight, n.title'), $node->nid);
$children = db_query(db_rewrite_sql('SELECT n.nid, n.title, b.weight FROM {node} n INNER JOIN {book} b ON n.vid = b.vid WHERE b.parent = %d ORDER BY b.weight, n.title'), $node->nid);
while ($child = db_fetch_object($children)) {
$form = array_merge($form, _book_admin_table_tree(node_load($child->nid), $depth + 1));
}