Index: branches/5.1.x/core/units/forms/forms_eh.php =================================================================== diff -u -N -r13086 -r13168 --- branches/5.1.x/core/units/forms/forms_eh.php (.../forms_eh.php) (revision 13086) +++ branches/5.1.x/core/units/forms/forms_eh.php (.../forms_eh.php) (revision 13168) @@ -1,6 +1,6 @@ status == erSUCCESS) { + if ($event->status == erSUCCESS) { $this->OnCreateFormFields($event); - $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"'); - $this->Application->StoreVar('RefreshStructureTree', 1); + $this->_deleteSectionCache(); } } @@ -84,11 +83,18 @@ parent::OnMassDelete($event); if ($event->status == erSUCCESS) { - $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"'); - $this->Application->StoreVar('RefreshStructureTree', 1); + $this->_deleteSectionCache(); } } + function _deleteSectionCache() + { + $reset_event = new kEvent('adm:OnResetSections'); + $this->Application->HandleEvent($reset_event); + + $this->Application->StoreVar('RefreshStructureTree', 1); + } + /** * Dynamically fills customdata config *