-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iterator loop over the same item twice #73
Comments
so i think i got the general idea. The issue happens here
working on a fix :) |
so i have a solution |
This will need to wait until actions/runner-images#9033 is resolved so we can use a compatible version of sqlite3 in CI |
@GuySartorelli well, the ci is not needed to confirm that my fix works :-) but i'm in no rush, no issues with running my own little fork in the meantime |
Just found a really odd issue when testing sqlite
in a template i have this
<% loop MyList %>
...
<% end_loop %>
The list contains only one record, but it's displayed twice
It seems due to the switch to generators We have yield $data, but that is actually called twice due to the rewind call in SSViewer_scope.
I don't have a solution yet. Removing $this->itemIterator->rewind(); fixes the issue, but it's probably there for a reason.
Also, with sqlite, fetchArray can start giving AGAIN the results after false has been returned, so that might also be it, or a combination of both issues.
PRs
The text was updated successfully, but these errors were encountered: