We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
11.1.5
// ... public function compute(Concrete $object, CalculatedValue $context): string { return 'I have index ' . $context->getIndex(); } // ...
Index is always 0
Index should be same as the position within the field collection
This is probably related to #11816.
Inside the loop, the index must be updated every iteration, not just the first time, when $params['context']['containerKey'] is not set.
$params['context']['containerKey']
The text was updated successfully, but these errors were encountered:
Fixed by #16735 Thank you for suggesting the fix
Sorry, something went wrong.
@kingjia90 thx for fast fix!
kingjia90
Successfully merging a pull request may close this issue.
Pimcore version
11.1.5
Steps to reproduce
Actual Behavior
Index is always 0
Expected Behavior
Index should be same as the position within the field collection
This is probably related to #11816.
Inside the loop, the index must be updated every iteration, not just the first time, when
$params['context']['containerKey']
is not set.The text was updated successfully, but these errors were encountered: