Title of view-defined layer is taken from default display rather than the display defining it.

CommentFileSizeAuthor
#2 927708_view_title.patch1.21 KBtmcw
#1 UseDisplayTitle.patch1.3 KBstrk

Comments

strk’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB

The attached patch uses $view->get_title() which takes care of using the proper display title if any, or falling back to the default display title if display "uses the default".
Fallback to view name is retained.

tmcw’s picture

StatusFileSize
new1.21 KB

Here's a patch that retains the code style and does the same thing.

strk’s picture

Fine for me (altought I keep not getting why should performance be sacrified to style)

strk’s picture

Uhm, actually tmcw version doesn't work here:

PHP Fatal error: Can't use method return value in write context

I'll commit my version, saner, quicker and more readable...

strk’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.