Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
David_Rothstein CreditAttribution: David_Rothstein commentedFixing a silly typo in the code comments.
Comment #2
Dave ReidGood catch!
Please for my code style sake add a blank line in between the new chunks and their respective previous code. :)
Comment #3
David_Rothstein CreditAttribution: David_Rothstein commentedDone :)
Comment #4
Dave ReidCommitted to Git:
http://drupalcode.org/project/xmlsitemap.git/commit/7a94e4c