Skip to content

Commit

Permalink
VP-2176: Fix paging default values
Browse files Browse the repository at this point in the history
  • Loading branch information
yecli committed May 8, 2020
1 parent 4ef160a commit 39091cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VirtoCommerce.LiquidThemeEngine/Filters/CommonFilters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ public static Paginate Paginate(TemplateContext context, object source, int page
var collection = source as ICollection;
var pagedList = source as IPagedList;
var requestUrl = context.GetValue(new ScriptVariableGlobal("request_url")) as Uri;
var pageNumber = context.GetValue(new ScriptVariableGlobal("page_number"))?.ToString().SafeParseInt(1) ?? default;
var effectivePageSize = context.GetValue(new ScriptVariableGlobal("page_size"))?.ToString().SafeParseInt(pageSize) ?? default;
var pageNumber = context.GetValue(new ScriptVariableGlobal("page_number"))?.ToString().SafeParseInt(1) ?? 1;
var effectivePageSize = context.GetValue(new ScriptVariableGlobal("page_size"))?.ToString().SafeParseInt(pageSize) ?? pageSize;
var @params = new NameValueCollection();

if (!string.IsNullOrEmpty(filterJson))
Expand Down

0 comments on commit 39091cf

Please sign in to comment.