Skip to content

Commit

Permalink
Get all lists instead 10 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanovM committed Feb 3, 2017
1 parent 4e92f9f commit d93fb10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Nop.Plugin.Misc.MailChimp/Description.txt
@@ -1,7 +1,7 @@
Group: Misc
FriendlyName: MailChimp
SystemName: Misc.MailChimp
Version: 2.02
Version: 2.03
SupportedVersions: 3.80
Author: nopCommerce team
DisplayOrder: 1
Expand Down
3 changes: 2 additions & 1 deletion Nop.Plugin.Misc.MailChimp/Services/MailChimpManager.cs
Expand Up @@ -1450,7 +1450,8 @@ public async Task<IList<SelectListItem>> GetAvailableLists()
if (!IsConfigured)
return result;

var availableLists = await Manager.Lists.GetAllAsync();
var totalItems = (await Manager.Lists.GetResponseAsync()).TotalItems;
var availableLists = await Manager.Lists.GetAllAsync(new ListRequest { Limit = totalItems });
result.AddRange(availableLists.Select(list => new SelectListItem { Text = list.Name, Value = list.Id }));

return result;
Expand Down

0 comments on commit d93fb10

Please sign in to comment.