{"issue":{"created_at":"2011-11-29T19:51:13Z","state":"open","updated_at":"2011-11-29T19:51:25Z","user":{"gravatar_id":"73122aef4d0e965206fd6faddaa3340e","id":481937,"url":"https://api.github.com/users/Toflar","login":"Toflar","avatar_url":"https://secure.gravatar.com/avatar/73122aef4d0e965206fd6faddaa3340e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":10,"body":"Hi Leo\n\nThe subpalettes in the personal data are not working. This is because your killing all the selectors in ModuleUser.php with the following line:\n\n```\n$GLOBALS['TL_DCA'][$this->table]['palettes'] = array('default'=>$GLOBALS['TL_DCA'][$this->table]['palettes']['login']);\n```\n\nI tried to prevent this by replacing the line above with the following code:\n\n```\n// preserve the selectors\n$selectors = $GLOBALS['TL_DCA'][$this->table]['palettes']['__selector__'];\n\t\t\n$GLOBALS['TL_DCA'][$this->table]['palettes'] = array('default'=>$GLOBALS['TL_DCA'][$this->table]['palettes']['login']);\n$GLOBALS['TL_DCA'][$this->table]['palettes']['__selector__'] = $selectors;\n```\n\nIt works for me as a logged in admin but not for the \"normal\" user that has been assigned to a usergroup.\nI couldn't get to the bottom of this problem though.\nI thought I let you know - maybe you know immediately where the rub is...\n\nThank you =)\n\n[Download the attachments](http://www.contao.org/tl_files/tickets/2609.zip \"Download the attachments of this ticket\")\n\n--- _Originally created on October 12th, 2010, at 03:32pm (ID 2609)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2391442,"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/backend"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/import/labels/Defect"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":2609,"title":"subpalettes in personal data (main.php?do=login) not working","closed_at":null,"html_url":"https://github.com/contao/import/issues/2609","url":"https://api.github.com/repos/contao/import/issues/2609","milestone":{"created_at":"2011-11-29T15:29:56Z","state":"open","due_on":null,"closed_issues":0,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":34,"description":"Contao 2.9.3 (maintenance release)","title":"2.9.3","url":"https://api.github.com/repos/contao/import/milestones/34","open_issues":1}},"action":"created","comment":{"created_at":"2011-11-29T19:51:24Z","updated_at":"2011-11-29T19:51:24Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Good idea :) See 34631bcf0b8da8eff20090ca4ac80a18.\n\n--- _Originally created on January 4th, 2011, at 11:17am_","id":2944523,"url":"https://api.github.com/repos/contao/import/issues/comments/2944523"}}