I changed everything around and eliminated some issues. After much testing, I've got it down to one last problem.
The problem now only shows up for a FieldX of a select box. The select_json I'm using here is custom, but it is using the select dropdown code from Seblod.
To reproduce:
- Select an entry from the dropdown
- Save
- Add another dropdown to the FieldX (+)
- Select an entry
- Save
Now only the new one shows up and the old one is deleted. Essentially, it is only saving the newest FieldX. What happened?
Here's the db for those fields:
id title name folder type description published label selectlabel display required validation defaultvalue options options2 minlength maxlength size cols rows ordering sorting divider bool location extended style script bool2 bool3 bool4 bool5 bool6 bool7 bool8 css attributes storage storage_location storage_table storage_field storage_field2 storage_params storages checked_out checked_out_time
------ --------------------------------- --------------------------------- ------ ----------- ----------- --------- --------------- ----------- ------- -------- ---------- ------------ ------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------- --------- ------ ------ ------ -------- ------- ------- ------ -------- --------------------------- ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ---------- -------- ---------------- ------------------------- --------------------------------- -------------- -------------- -------- ----------- ---------------------
5140 Video Association WordPress video_association_wordpress 515 select_json 1 Featured Video 3 {"id_field":"js-featured-video","request_field":"\/api\/video\/get_list\/","collection_field":"posts","option_field":"title","value_field":"url"} 0 255 32 0 0 0 0 0 0 0 0 0 0 0 1 standard joomla_article #__cck_store_item_content video_association_wordpress 0 0000-00-00 00:00:00
5142 Video Associations WordPress video_associations_wordpress 515 field_x 1 Featured Videos 3 1 10 32 0 1 0 0 0 video_association_wordpress 1 1 1 0 0 0 1 custom joomla_article #__content introtext 0 0000-00-00 00:00:00