- Patch #84117 by misawie: make book outlining work with PostgreSQL.
parent
24ac1a1fb2
commit
878bb6162c
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue