You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the repeat modifier with an integer variable as its argument I get the following type error:
"TypeError str_repeat(): Argument #2 ($times) must be of type int, Statamic\Fields\Value given"
How to Reproduce
Define an integer variable (e.g. {{ rating }}) in an entry.
Try and use it in the repeat modifer as follows:
---
thing: //html to be repeated here //
---
{{ view:thing | repeat:rating }}
Screenshots:
Template:
Blueprint with int field shown:
Error msg:
Environment:
Statamic 3.0.43 Solo
Laravel 8.27.0
PHP 8.0.2
statamic/ssg dev-master
Install method:
Fresh install from statamic/statamic
The text was updated successfully, but these errors were encountered:
Bug Description
When using the repeat modifier with an integer variable as its argument I get the following type error:
"TypeError str_repeat(): Argument #2 ($times) must be of type int, Statamic\Fields\Value given"
How to Reproduce
Define an integer variable (e.g. {{ rating }}) in an entry.
Try and use it in the repeat modifer as follows:
Screenshots:
Template:
Blueprint with int field shown:
Error msg:
Environment:
Statamic 3.0.43 Solo
Laravel 8.27.0
PHP 8.0.2
statamic/ssg dev-master
Install method:
statamic/statamic
The text was updated successfully, but these errors were encountered: