Skip to content
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

Select Keys get reset to iteration from 0 if type is integer #3156

Closed
radovanobal opened this issue Jan 26, 2021 · 0 comments · Fixed by #3284
Closed

Select Keys get reset to iteration from 0 if type is integer #3156

radovanobal opened this issue Jan 26, 2021 · 0 comments · Fixed by #3284

Comments

@radovanobal
Copy link

radovanobal commented Jan 26, 2021

Bug Description

If a field type of Select is created in the control panel and you set the keys to integer values for example 5, 7, 23, 60, the keys will be saved as 0, 1, 2, 3 instead.

How to Reproduce

I have reliably recreated this the following way:

  • create repeater
  • add field type select
  • add select option with select integer values not in order of 0, 1, 2, 3
  • finish
  • re-open the select field and find the keys reset to 0, 1, 2, 3

Extra Detail

Screenshot from 2021-01-26 22-39-40
Screenshot from 2021-01-26 22-39-51

Environment

Statamic 3.0.40 Pro
Laravel 8.25.0
PHP 7.4.9
optimoapps/statamic-bard-text-align V1.0.1

  • Fresh install from statamic/statamic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants