File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ### 2.0.4
4
+ Fixed: Rest resource filter methods do not need to return a collection
5
+
3
6
### 2.0.3
4
7
5
8
Fixed: 2.0.2 introduced issue with ModelRestResources using callbacks in the columns array
Original file line number Diff line number Diff line change @@ -443,23 +443,9 @@ public function getModelCollection()
443
443
444
444
Log::performance ("Filtering collection " , "RESTAPI " );
445
445
446
- $ newCollection = $ this ->filterModelCollectionAsContainer ($ collection );
447
-
448
- if ($ newCollection ){
449
- $ collection = $ newCollection ;
450
- }
451
-
452
- $ newCollection = $ this ->filterModelCollectionForSecurity ($ collection );
453
-
454
- if ($ newCollection ){
455
- $ collection = $ newCollection ;
456
- }
457
-
458
- $ newCollection = $ this ->filterModelCollectionForQueries ($ collection );
459
-
460
- if ($ newCollection ){
461
- $ collection = $ newCollection ;
462
- }
446
+ $ this ->filterModelCollectionAsContainer ($ collection );
447
+ $ this ->filterModelCollectionForSecurity ($ collection );
448
+ $ this ->filterModelCollectionForQueries ($ collection );
463
449
464
450
if ($ this ->parentResource instanceof ModelRestResource) {
465
451
$ this ->parentResource ->filterModelCollectionAsContainer ($ collection );
You can’t perform that action at this time.
0 commit comments