Skip to content

Commit

Permalink
Merge pull request #487 from jjrom/develop
Browse files Browse the repository at this point in the history
Correct issue when searching with owner
  • Loading branch information
jjrom authored Jan 13, 2025
2 parents 304afed + e55d5e3 commit 993879f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/resto/core/RestoCollections.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,12 @@ public function load($params = array())
{

if ( !$this->isLoaded ) {


if ( isset($params['owner']) ) {
$owner = new RestoUser(array('username' => $params['owner']), $this->context);
$params['owner'] = $owner->profile['id'];
}
$collectionsDesc = (new CollectionsFunctions($this->context->dbDriver))->getCollections($this->user, $params);

foreach (array_keys($collectionsDesc) as $collectionId) {
$collection = $this->context->keeper->getRestoCollection($collectionId, $this->user);
foreach ($collectionsDesc[$collectionId] as $key => $value) {
Expand Down
2 changes: 1 addition & 1 deletion app/resto/core/RestoConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RestoConstants
// [IMPORTANT] Starting resto 7.x, default routes are defined in RestoRouter class

// resto version
const VERSION = '9.5.6';
const VERSION = '9.5.7';

/* ============================================================
* NEVER EVER TOUCH THESE VALUES
Expand Down

0 comments on commit 993879f

Please sign in to comment.