Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Mar 2013 at 10:55 UTC
Updated:
29 Jul 2014 at 22:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerThanks for alexpott to find this issue.
A bugfix with some proper testing involved.
Comment #2
alexpottTagging :)
Comment #3
tim.plunkettThe handler_type is only for area plugins, so cleaning this up a bit.
Comment #4
dawehnerReally good point, so what about name it to areaType, as this is what this is all about?
Added also a small change to make the life or IDE people easier and probably improves performance?
Comment #5
alexpottI've tested the patch and reviewed the changes and this fixes my problem. So this is RTBC.
However in testing the patch has raised some concerns about the ui... see #1957214: Title setting in views UI does not indicate when the title might be overridden
Comment #6
alexpott:)
Comment #7
damiankloip commentedIs there a different issue here? As the title handler is only available for empty areas, so they shouldn't be even used unless the view is actually empty.
Comment #8
damiankloip commentedLike this, just an idea. As template_preprocess_views_view will check the view is empty before calling render() on the empty area handlers.
Sorry for doing this on RTBC :)
Comment #9
dawehnerrender() can also be called on header/footer if the result is empty (as there is a setting for that) so don't call preRender() seems to be wrong.
Comment #10
webchickI can't tell if this is RTBC or not?
Comment #11
damiankloip commented@dawehner, I was only thinking of not calling preRender for empty area if the result is empty. Not to do with the setting, and the title handler is only available for empty areas currently?
Comment #12
dawehnerOh I see, yeah we could merge this two pages together, as the other one contains test fixes and one other one.
Comment #13
damiankloip commentedYep, that sounds good. The tests look good to me.
Interdiff just shows the change I made to Title.php.
Comment #15
damiankloip commented#13: 1956912-13.patch queued for re-testing.
Comment #16
dawehnerThe changes from damian look great. Thanks for the simplification.
Comment #17
xjm@damiankloip marked #1961184: "Welcome to Drupal" title (frontpage view "no results" behavior) persists even when there are results as a duplicate. I spent 30 minutes trying to find the bug report that I was sure must exist for this before I filed it, so please let's put more information in the issue summaries. See that issue for an example of a good start to a summary, or review http://drupal.org/node/1155816. I searched for "no results" and "global title override" and "Welcome to Drupal" and many many combinations of these keywords, and never found this issue.
For maintainers: One result of this bug is that the "Welcome to Drupal" site title persists even after content is added to the site.

Every single site builder will run into this bug, so this is major.
Comment #18
xjmComment #19
xjm:)
Comment #20
webchickThis will need a re-roll because human_name no longer exists.
Comment #21
dawehnerOh right
Rerolled.
Comment #22
webchickW00t!
Committed and pushed to 8.x. Thanks!