If I export a profile from an English language installation and import that profile into an installation with a different default language, the "authenticated user" and "anonymous user" settings are lost.

This is due to the fact that user_roles() returns a localized role name, and the CKEditor Features code uses role names, not rids.

I could submit a patch to modify the Features export/import code to use rids instead of role names, but I was wondering if there's a reason for using role names in the first place.

Comments

mkesicki’s picture

Please attach a patch, so we can check it.

infojunkie’s picture

Title: Reverting exported settings miss out on core roles with locale » Reverting exported settings miss out on core roles with different locale
Category: support » bug
Status: Active » Needs review
StatusFileSize
new1.42 KB

Patch attached. The idea is very simple: match either rids or role names, so as to maximize the chances of finding the right role.

mkesicki’s picture

@infojunkie thank you for patch.

mkesicki’s picture

Issue summary: View changes

simpler text