Index: branches/5.1.x/core/kernel/utility/debugger.php =================================================================== diff -u -N -r13956 -r13989 --- branches/5.1.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 13956) +++ branches/5.1.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 13989) @@ -1,6 +1,6 @@ '; $Debugger.EditorPath = ''; $Debugger.DebugURL = 'baseURL.'/debugger_responce.php?sid='.$this->rowSeparator.'&path='.urlencode($dbg_path); ?>'; - $Debugger.EventURL = 'Factory) ? $application->HREF('dummy', '', Array ('pass' => 'm')) : ''; ?>'; + $Debugger.EventURL = 'Factory) ? $application->HREF('dummy', '', Array ('pass' => 'm', '__NO_REWRITE__' => 1)) : ''; ?>'; IsFatalError || (DBG_RAISE_ON_WARNINGS && $this->WarningCount)) { echo '$Debugger.Toggle();'; Index: branches/5.1.x/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -N -r13962 -r13989 --- branches/5.1.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 13962) +++ branches/5.1.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 13989) @@ -1,6 +1,6 @@ ParseConfigs(); $this->AfterConfigRead(false); $this->processDynamicClones(); - $this->retrieveCollections(); + + // don't call kUnitConfigReader::retrieveCollections since it + // will overwrite what we already have in kApplication class instance } /** Index: branches/5.1.x/core/units/site_domains/site_domain_eh.php =================================================================== diff -u -N -r13874 -r13989 --- branches/5.1.x/core/units/site_domains/site_domain_eh.php (.../site_domain_eh.php) (revision 13874) +++ branches/5.1.x/core/units/site_domains/site_domain_eh.php (.../site_domain_eh.php) (revision 13989) @@ -1,6 +1,6 @@ Name == 'OnItemBuild') { + // check permission without using $event->getSection(), + // so first cache rebuild won't lead to "ldefault_Name" field being used + return true; + } - $permissions = Array ( - 'OnItemBuild' => Array ('self' => true), - ); - - $this->permMapping = array_merge($this->permMapping, $permissions); + return parent::CheckPermission($event); } /**