Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2008 at 23:09 UTC
Updated:
1 Apr 2008 at 16:16 UTC
I have a page view set up with two arguments
view/arg1/arg2
Both arguments have their own unique title to use.
If I visit the page with both arguments, the title of the page is set to that defined by the second argument as it should be.
If I visit the page with only the first argument, the title of the page is the core title set by the view itself. It should be displaying the title defined by the first argument.
In short, only the title of the highest numbered view is applied. If that argument is not defined, then it uses the title of the view rather than using the title of the last argument actually given by the url.
Comments
Comment #1
RoboPhred commentedI came up with a possible fix, although I am not sure if I might be breaking something else. Simple testing shows no other issues.
File: view.inc
view::_build_arguments()
In the foreach loop, if the argument is missing it executes the code
This causes it to bail out when it encounters an argument with no value, so it never gets a chance to execute the code imidiately after the foreach statement which sets the title.
As a possible fix, I came up with
This works for my purposes, and seems to deal with the actions properly.
Comment #2
merlinofchaos commentedThis is now fixed. Thanks!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.