control for list of users on all sub-tabs

mariuss - September 30, 2009 - 21:52
Project:Masquerade
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When editing a user profile you get a control labelled "Enter the users this user is able to masquerade as".

This control shows up on all sub-tabs of Edit, and it probably should show only on "Account".

In most cases "Account" is the only sub-tab, but there are cases when there are more:
1. If you add profile fields, these will show in one ore more extra sub-tabs.
2. Some modules add their own sub-tabs, for example Simplenews adds a sub-tab called "My newsletters".

#1

deviantintegral - October 1, 2009 - 16:54

I can confirm this. It looks like we need to check the $category parameter being passed in.

#2

mariuss - October 1, 2009 - 22:30

Here is a patch that does just that.

AttachmentSize
account-tab.patch 3.58 KB

#3

deviantintegral - October 2, 2009 - 15:57
Status:active» fixed

Thanks for the patch. I've committed it to the DRUPAL-6--1 branch.

#4

System Message - October 16, 2009 - 16:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.