@@ -96,15 +96,13 @@ protected function buildBreadcrumbs($CategoryID) {
96
96
$ ancestors = CategoryModel::getAncestors ($ CategoryID );
97
97
$ parentCategoryID = val ('ParentCategoryID ' , $ Category );
98
98
// FIX https://github.com/topcoder-platform/forums/issues/648
99
-
100
99
$ showFullBreadcrumbs = true ;
101
100
$ this ->EventArguments ['ShowFullBreadcrumbs ' ] = & $ showFullBreadcrumbs ;
102
101
$ this ->fireEvent ('BeforeBuildBreadcrumbs ' );
103
- // getIncomingValue('embed_type') == 'mfe'
104
102
if (!$ showFullBreadcrumbs ) {
105
103
$ temp = [];
106
104
if (val ('GroupID ' , $ Category ) > 0 ) {
107
- $ GroupCategoryID = $ this ->data ('Breadcrumbs.Options.GroupCategoryID ' );
105
+ $ GroupCategoryID = $ this ->data ('BreadcrumbsOptionsGroupCategoryID ' );
108
106
foreach ($ ancestors as $ id => $ ancestor ) {
109
107
if ($ GroupCategoryID == $ ancestor ['CategoryID ' ]) {// root category for a group
110
108
array_push ($ temp , ['Name ' => $ ancestor ['Name ' ], 'Url ' =>'/group/ ' .$ ancestor ['GroupID ' ]]);
@@ -113,17 +111,14 @@ protected function buildBreadcrumbs($CategoryID) {
113
111
}
114
112
}
115
113
}
116
- if (count ($ temp ) == 1 ) {
117
- return [];
118
- }
119
114
return $ temp ;
120
115
} else {
121
116
122
117
if (val ('GroupID ' , $ Category ) > 0 ) {
123
118
$ challenge = $ this ->data ('Challenge ' );
124
119
$ track = $ challenge ? $ challenge ['Track ' ] : false ;
125
120
$ temp = [];
126
- $ GroupCategoryID = $ this ->data ('Breadcrumbs.Options.GroupCategoryID ' );
121
+ $ GroupCategoryID = $ this ->data ('BreadcrumbsOptionsGroupCategoryID ' );
127
122
foreach ($ ancestors as $ id => $ ancestor ) {
128
123
if ($ ancestor ['GroupID ' ] > 0 ) {
129
124
if ($ GroupCategoryID == $ ancestor ['CategoryID ' ]) {// root category for a group
0 commit comments