joomla/joomla-platform — pull request #1665 by elinw (2012-11-04 06:41:08+00:00)
Title: Fix some methods in JTableNested when alias field does not exist.

The alias property always exists in JTableNested (it is explicit in the class definition) so the property_exists test will always return true. (In contrast the path and title properties only exist if the table includes those fields.) If an alias field does not exist, this will result in errors when it is referred to by name such as in the query in getRootId(). This change instead checks for the presence of a field called alias.