Skip to content

Commit

Permalink
0 index array should stop at L-1
Browse files Browse the repository at this point in the history
  • Loading branch information
SBalslev committed Feb 15, 2024
1 parent 54ebee2 commit 163305d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ codeunit 2515 "AppSource Product Manager" implements "AppSource Product Manager
ResponseObject := AppSourceProductManagerDependencies.GetAsJSon(RestClient, NextPageLink).AsObject();
if (ResponseObject.Get('items', ProductArrayToken)) then begin
ProductArray := ProductArrayToken.AsArray();
for i := 0 to ProductArray.Count() do
for i := 0 to (ProductArray.Count() - 1) do
if (ProductArray.Get(i, ProductToken)) then
InsertProductFromObject(ProductToken.AsObject(), AppSourceProductRec);
end;
Expand Down

0 comments on commit 163305d

Please sign in to comment.