craft-neo icon indicating copy to clipboard operation
craft-neo copied to clipboard

Transfering data between locale when deleting a locale

Open mrksmts opened this issue 8 years ago • 2 comments

When you delete a locale you get the option to transfer the data from the old locale to a different locale.

Instead of moving the data to the different locale the data gets deleted. Probably done by deleteSiteLocale() on line 334 of LocalizationService

Might relate to #77

mrksmts avatar Jan 24 '17 14:01 mrksmts

Been something I've been working on for a while now – turns out locales are tricky 😅

benjamminf avatar Feb 10 '17 18:02 benjamminf

After comparing the behaviour to the Matrix field, it seems that Neo's behaviour is identical. To be honest, I'm not entirely sure what you should expect when transferring locale data. Should any data in the locale being overwritten be completely replaced with the deleted one? Or should only Neo fields that are empty have data copied over to them?

I may need to discuss this with somebody who knows a bit more about locales than myself.

benjamminf avatar Feb 11 '17 20:02 benjamminf