Fix #31197 for Joomla 2.5
# [#27830] Loss of checked item in user registration back end (Fix #2022)
Merge pull request #1966 from wilsonge/patch-3

Fix #31197 for Joomla 2.5