RSS Feed/News Node style override won't update effective style id if deleted

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,745
Points
823

Reputation:

In XF\Entity\Style::_postDelete()
Developers made a effective style id reset like this:
PHP:

Code:
$db->update('xf_node', [
    'style_id' => 0,
    'effective_style_id' => 0
], "style_id = ? OR effective_style_id = ?", [$id, $id]);
so effective_style_id won't get recalculated, because XF\Entity\Node behavior XF:TreeStructured won't get triggered
I kinda understand why they made reset as above and shouldn't be that critical (but fix would be fine), but as per as I use the same feature for my...

Read more

Continue reading...
 
Status
Not open for further replies.
Top