Browse Source

if HasQueryLimit is false then set start and limit to null so it includes all results

Shaun 9 years ago
parent
commit
cb751893a8
1 changed files with 5 additions and 2 deletions
  1. 5 2
      MediaBrowser.Api/Reports/ReportsService.cs

+ 5 - 2
MediaBrowser.Api/Reports/ReportsService.cs

@@ -304,8 +304,11 @@ namespace MediaBrowser.Api.Reports
                 }
             }
 
-            if (request.HasQueryLimit)
-                query.Limit = request.Limit;
+            if (request.HasQueryLimit == false)
+            {
+                query.StartIndex = null;
+                query.Limit = null;
+            }
 
             return query;
         }