Hi,

When I create a new relationship type, but decide to delete it later, the relationship type still shows up as a tab under the "my relationships" link. I.E. I created a relationship called "Fans". I decided I didn't want this relationship type anymore, so I deleted in in the Relationships Admin panel. However, when I log in as a test user and go to "my relationships", it still appears, but says that no relationships of that type exist....

Does anyone know how to remove this?

Thanks,

CarbonPig

Comments

jaydub’s picture

When you delete a relationship type, the menu item generated when you created the relationship type will still be in the menu cache. You need to clear the menu cache to make sure the menu entries for the deleted relationship are removed.

There is a cache clear button at /admin/settings/performance you can use to clear the menu cache in this case.

jeya’s picture

You have to add these two lines in

user_relationships_ui.admin_actions.inc - Line 113.

user_relationships_types_load(TRUE);
menu_rebuild();

Menu would be rebuilt automatically ..

ajayg’s picture

Title: How to Remove Relationship Type from Menu/Tabs? » Menu/Tabs not updated when relationship type is deleted.
Category: support » bug
Status: Active » Needs review
alex.k’s picture

Assigned: Unassigned » alex.k
Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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