Index: branches/5.0.x/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r12808 -r12809 --- branches/5.0.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 12808) +++ branches/5.0.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 12809) @@ -1,6 +1,6 @@ Application->GetVar($event->getPrefixSpecial().'_id'); - $this->Application->StoreVar('IsRootCategory_'.$this->Application->GetVar('m_wid'), $category_id === '0'); + $category_id = $this->Application->GetVar($event->getPrefixSpecial() . '_id'); + $home_category = $this->Application->findModule('Name', 'Core', 'RootCat'); + $this->Application->StoreVar('IsRootCategory_'.$this->Application->GetVar('m_wid'), ($category_id === '0') || ($category_id == $home_category)); + parent::OnEdit($event); }