Index: trunk/core/units/general/helpers/sections_helper.php =================================================================== diff -u -N -r4620 -r4702 --- trunk/core/units/general/helpers/sections_helper.php (.../sections_helper.php) (revision 4620) +++ trunk/core/units/general/helpers/sections_helper.php (.../sections_helper.php) (revision 4702) @@ -14,6 +14,19 @@ var $Tree = Array(); /** + * Set's prefix and special + * + * @param string $prefix + * @param string $special + * @access public + */ + function Init($prefix, $special, $event_params = null) + { + parent::Init($prefix, $special, $event_params); + $this->BuildTree(); + } + + /** * Builds xml for tree in left frame in admin * * @param Array $params @@ -32,7 +45,6 @@ foreach ($sections as $section_name => $section_params) { // we could also skip not allowed sections here in future - if ($section_params['type'] != stTREE) continue; $section_params['SectionPrefix'] = $prefix; $section_params['url']['m_opener'] = 'r'; @@ -54,6 +66,11 @@ $this->Tree[$section_name] = array_merge_recursive2($current_data, $section_params); $this->Tree[ $section_params['parent'] ]['children'][ "{$section_params['priority']}" ] = $section_name; + + if ($section_params['type'] == stTAB) { + // if this is tab, then mark parent section as TabOnly + $this->Tree[ $section_params['parent'] ]['tabs_only'] = true; + } } } }