Commit 2c773cad authored by merlinofchaos's avatar merlinofchaos

#100769: link book nodes by vid instead of nid

parent ea876ee3
......@@ -56,5 +56,6 @@ Views 4.7.x-1.2
o 101025: Sort by node type
Views 4.7.x-dev
Bugs fixed:
o Reverted 99783 which doesn't work.
o 100769: link book table via vid instead of nid.
......@@ -12,10 +12,10 @@ function book_views_tables() {
'join' => array(
'left' => array(
'table' => 'node',
'field' => 'nid'
'field' => 'vid'
),
'right' => array(
'field' => 'nid'
'field' => 'vid'
)
),
"filters" => array(
......
......@@ -599,7 +599,7 @@ function views_handler_arg_monthyear($op, &$query, $argtype, $arg = '') {
case 'link':
return l(format_date($query->created, 'custom', 'F, Y'), "$arg/$query->name");
case 'title':
return format_date(strtotime("${query}01"), 'custom', 'F, Y', 0);
return format_date(strtotime("${query}15"), 'custom', 'F, Y', 0);
}
}
function views_handler_arg_fulldate($op, &$query, $argtype, $arg = '') {
......
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