Skip to content

Commit 21e3bcb

Browse files
committed
Correct links in catalogs
1 parent 2ac6846 commit 21e3bcb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/resto/core/RestoConstants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RestoConstants
2020
// [IMPORTANT] Starting resto 7.x, default routes are defined in RestoRouter class
2121

2222
// resto version
23-
const VERSION = '9.0.0-RC2';
23+
const VERSION = '9.0.0-RC3';
2424

2525
/* ============================================================
2626
* NEVER EVER TOUCH THESE VALUES

app/resto/core/api/STACAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ private function processPath($segments, $params = array())
13371337
'type' => 'Catalog',
13381338
'links' => array_merge(
13391339
$this->getBaseLinks($segments),
1340-
$parentAndChilds['childs']
1340+
( !empty($parentAndChilds['parent']['links']) ? array_merge($parentAndChilds['childs'], $parentAndChilds['parent']['links']) : $parentAndChilds['childs'] )
13411341
)
13421342
);
13431343

0 commit comments

Comments
 (0)