Bug Node style override won't update effective style id if deleted

There is a bug in this version
K

Katsuro

Guest
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...