Fixed Clearing cache on entity fails

Affected version
2.1.7

TickTackk

Well-known member
If one of the relation has condition which is empty string such as:
PHP:
'MasterTitle' => [
    'entity' => 'XF:Phrase',
    'type' => static::TO_ONE,
    'conditions' => [
        ['language_id', '=', 0],
        ['title', '=', 'tckApplications_application.', '$application_id'],
        ['addon_id', '=', '']
    ]
],
Fails at src/XF/Mvc/Entity/Entity.php:901
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.8).

Change log:
Prevent an error related to cache clearing of entity relations with an empty condition.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top