Describe the bug
I built a custom suggestmode for my Prestige Worldwide addon. The fieldtype has max_items: 1, looks like a dropdown, but saves the info as an array instead of a string.
To Reproduce
Steps to reproduce the behavior:
Install Prestige Worldwide and choose a collection in settings
Go to an entry in the chosen collection and open the event info tab
Scroll down to 'Signup form'
Enable 'People can sign up for this event', and choose a form.
Click on save
Expected behavior
I expect the chosen value from the 'Which form should I use for signups?' select to save it's data as a string instead of an array, since it's max items is set to 1.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment details (please complete the following information):
2.11.12
Fresh Install
macOS 10.14.5
Web Server: Valet
Addons installed: Prestige Worldwide
Additional context
I checked the repo of a site with my addon to see how the data was saved before, and it used to be saved as a string. The addon was working properly on a site of one of my clients, but it suddenly broke.
Describe the bug I built a custom suggestmode for my Prestige Worldwide addon. The fieldtype has max_items: 1, looks like a dropdown, but saves the info as an array instead of a string.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the chosen value from the 'Which form should I use for signups?' select to save it's data as a string instead of an array, since it's max items is set to 1.
Screenshots If applicable, add screenshots to help explain your problem.
Environment details (please complete the following information):
Additional context I checked the repo of a site with my addon to see how the data was saved before, and it used to be saved as a string. The addon was working properly on a site of one of my clients, but it suddenly broke.