If you add a new menu and then add a new menu link to that menu immediately afterwards, the XML Sitemap settings fieldset doesn't appear on the form. You have to clear the cache first.

This is causing the xmlsitemap_menu tests to fail.

The problem is that the entity cache hasn't been updated to reflect the new menu yet. Since XML Sitemap is defining the menu link entity itself, I guess that means it's up to it to clear the cache when menus change. That's what the attached patch does.

Comments

David_Rothstein’s picture

Fixing a silly typo in the code comments.

dave reid’s picture

Good catch!

Please for my code style sake add a blank line in between the new chunks and their respective previous code. :)

David_Rothstein’s picture

Done :)

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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