CMB2-Snippet-Library icon indicating copy to clipboard operation
CMB2-Snippet-Library copied to clipboard

Address field set to repeatable incorrectly adds blank field groups upon save

Open DevinWalker opened this issue 10 years ago • 2 comments
trafficstars

Scenario: User has the repeatable address fields in a plugin or theme like so: https://gist.github.com/DevinWalker/4cfbc188b23e6e63bdcc

When saving the field a new group is created after every save:

Example 1: 7-29-2015 3-00-27 pm

Example 2: blanks

DevinWalker avatar Jul 29 '15 22:07 DevinWalker

I stumbled upon this fix https://github.com/WebDevStudios/CMB2/issues/373 but it's really a workaround. I believe there's a core solution needed

DevinWalker avatar Jul 30 '15 04:07 DevinWalker

The snippet library is not core. I will happily accept a PR, but unfortunately don't have the time to explore this further right now.

jtsternberg avatar Jul 30 '15 15:07 jtsternberg