Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Suggest fields with create:true not saving/displaying custom added values #1722
When saving data with a suggest field, custom added values and values added from option list should save in the yaml, and display in the field when re-editing the entry/page
I've tested this with a max_items of 1, and no max_items, and i've tested it with no pre-built options, and with pre-built options, behavior remains the same under any of these situations.
If I have pre-defined values for the field available and select one or multiples of them, everything behaves as expected. If I manually add an option, and do "save and continue", everything appears to behave as expected. But if i exit the entry I had been editing, and then go back into it, The manually added value is not displayed. At this point, it remains in the entry's yaml. If I don't edit that field at all, edit other fields and save the entry, the data stays where it is (in the yaml, but continues to not display in the field when editing). If I add or edit any value in that field (predefined or manually added) and save the entry, the original manually added value disappears from the yaml.
Steps to reproduce
Operating System: macOS High Sierra 10.13.2 (17C88)
Web Server: apache (via mamp pro)
PHP Version: 7.1.8
Statamic Version: 2.8.0
Updated from an older Statamic or fresh install: updated
List of installed addons: none