Fixed Changing navigation_id for a navigation item does not trigger children export

Xon

Well-known member
Affected version
2.0.11
In both AdminNavigation and Navigation entities, there is code to update child navigation items when the primary id changes;

PHP:
{
   $this->db()->update('xf_navigation',
      ['parent_navigation_id' => $this->navigation_id],
      'parent_navigation_id = ?', $this->getExistingValue('navigation_id')
   );
}

However this code does not trigger the XF:DevOutputWritable behaviour on the entity for each changed child.
 
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in a future XF release (2.0.12).

Change log:
Update child navigation entries directly when the parent ID changes to ensure dev output is written correctly.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Top Bottom