pods icon indicating copy to clipboard operation
pods copied to clipboard

Delete / rename old values when changing field names for Settings fields

Open PodsBot opened this issue 9 years ago • 2 comments

Delete / rename old values when changing field names for Settings fields submitted via Slack by sc0ttkclark

PodsBot avatar May 01 '15 17:05 PodsBot

This needs an elseif statement to cover settings pods, it should rename the old option names to the new option names (format: {pod_name}_{field_name})

https://github.com/pods-framework/pods/blob/master/classes/PodsAPI.php#L2513

While you're in there, please add an additional pods_query and update $prepare so you prefix the names of those fields with '_pods_' so we cover those cases there too:

https://github.com/pods-framework/pods/blob/master/classes/PodsAPI.php#L2502

sc0ttkclark avatar May 08 '15 22:05 sc0ttkclark

Executive decision that this shouldn't hold up 2.5.3 (nothing breaks, it just leaves detritus), so punting to the next milestone.

pglewis avatar May 30 '15 05:05 pglewis