File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,12 @@ public function load($params = array())
204
204
{
205
205
206
206
if ( !$ this ->isLoaded ) {
207
-
207
+
208
+ if ( isset ($ params ['owner ' ]) ) {
209
+ $ owner = new RestoUser (array ('username ' => $ params ['owner ' ]), $ this ->context );
210
+ $ params ['owner ' ] = $ owner ->profile ['id ' ];
211
+ }
208
212
$ collectionsDesc = (new CollectionsFunctions ($ this ->context ->dbDriver ))->getCollections ($ this ->user , $ params );
209
-
210
213
foreach (array_keys ($ collectionsDesc ) as $ collectionId ) {
211
214
$ collection = $ this ->context ->keeper ->getRestoCollection ($ collectionId , $ this ->user );
212
215
foreach ($ collectionsDesc [$ collectionId ] as $ key => $ value ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class RestoConstants
20
20
// [IMPORTANT] Starting resto 7.x, default routes are defined in RestoRouter class
21
21
22
22
// resto version
23
- const VERSION = '9.5.6 ' ;
23
+ const VERSION = '9.5.7 ' ;
24
24
25
25
/* ============================================================
26
26
* NEVER EVER TOUCH THESE VALUES
You can’t perform that action at this time.
0 commit comments