Download & Extend

Fix notice in _get_aliasable_displays()

Project:View Alias
Version:6.x-2.1
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active

Issue Summary

In _get_aliasable_displays() I'm getting these notices on every node_save():

Notice: Undefined index: path in _get_aliasable_displays() (line 194 of /Users/nate/Sites/example/sites/all/modules/contrib/view_alias/view_alias.module).

I believe this happens when I have non-page displays in my views that are set up to use automatic aliasing. This patch makes it so that view_alias check that the "path" property exists before trying to pull properties from it.

AttachmentSize
view_alias_notices2.patch492 bytes
nobody click here