contao/test — Issue #2609: subpalettes in personal data (main.php?do=login) not working
Author: Toflar
Created: 2011-11-29 09:58:16+00:00
State: open
Labels: backend, Defect

Hi Leo

The subpalettes in the personal data are not working. This is because your killing all the selectors in ModuleUser.php with the following line:

```
$GLOBALS['TL_DCA'][$this->table]['palettes'] = array('default'=>$GLOBALS['TL_DCA'][$this->table]['palettes']['login']);
```

I tried to prevent this by replacing the line above with the following code:

```
// preserve the selectors
$selectors = $GLOBALS['TL_DCA'][$this->table]['palettes']['__selector__'];

$GLOBALS['TL_DCA'][$this->table]['palettes'] = array('default'=>$GLOBALS['TL_DCA'][$this->table]['palettes']['login']);
$GLOBALS['TL_DCA'][$this->table]['palettes']['__selector__'] = $selectors;
```

It works for me as a logged in admin but not for the "normal" user that has been assigned to a usergroup.
I couldn't get to the bottom of this problem though.
I thought I let you know - maybe you know immediately where the rub is...

Thank you =)

[Download the attachments](http://www.contao.org/tl_files/tickets/2609.zip "Download the attachments of this ticket")

--- _Originally created on October 12th, 2010, at 03:32pm (ID 2609)_