ezsystems/ezpublish-legacy — pull request #692 by peterkeung (2013-07-19 19:54:01+00:00)
Title: Fix for EZP-21305: Allow object relation attribute to be used in object name pattern as first condition in fallback

In eZNamePatternResolver, resolveToken() makes sure that the object title is not null and not an empty string. Presumably this was done instead of a straight boolean check in order to allow an object title of "0". However, in such selective checking, there should be an extra check that the title value is not false.

With this fix, an object relation attribute, whose empty title returns false, can properly be used as the first condition in a fallback in an object name pattern.