Commit 0af2fa66 authored by merlinofchaos's avatar merlinofchaos
Browse files

#116190: Book parent didn't work with prefixes

parent 6ffda4d5
......@@ -138,6 +138,8 @@ Views --dev
o #122818: Incorrect use of fullname when queryname should have been used
o #108523: Properly validate that filter values need values selected.
o #122063: Prevent strtotime from choking on empty timestamps
o Serious cleanup of inline argument code
o #116190: Book parent didn't work with prefixes
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......@@ -147,3 +149,7 @@ Views --dev
o #115856: Allow use of autocomplete for freetagging taxonomies.
o Allow RSS channel description to be set as part of the argument option.
o #115849: Use dedicated cache table for views caching
o New $arg (inline argument) variants: $node, $node-TYPE, $user
o #102489: Allow edit tabs on views (for admins).
......@@ -128,7 +128,7 @@ function views_handler_field_book_parent_title_nl($fieldinfo, $fielddata, $value
function views_handler_filter_book_parent_zero() {
$parents = array();
$result = db_query("SELECT DISTINCT parent FROM {book} INNER JOIN {node} n ON book.vid = n.vid ORDER BY parent");
$result = db_query("SELECT DISTINCT parent FROM {book} b INNER JOIN {node} n ON b.vid = n.vid ORDER BY parent");
while ($obj = db_fetch_object($result)) {
$parents[$obj->parent] = "$obj->parent";
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