If I set up some profile fields in different categories, then delete all the fields in a particular category, then that category is still visible in the tabs on my profile edit page. Following this tab gives a page not found.
Clearing the cache with devel module fixed the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | deleting_last_profile_field_requires_cache_clear_396136_5.patch | 684 bytes | ergonlogic |
| #4 | deleting_last_profile_field_requires_cache_clear_396136_4.patch | 621 bytes | ergonlogic |
Comments
Comment #1
arru commentedAnother workaround is to assign an existing field to the empty category, and then reassign to another category. This also removes the empty tab.
Comment #2
ergonlogicThis came up in bug bingo...
It looks like #301071: Remove profile module from core has been committed, so this presumably won't be fixed in core.
Instead I've updated the docs to reflect that clearing the cache is necessary in this circumstance: http://drupal.org/node/873990/revisions/view/1103388/1647838.
(also, bugs should generally be filed against the dev version.)
Comment #3
joachim commentedD6 is still being maintained AFAIK, and profile module is still in D7, even if well-hidden.
Comment #4
ergonlogicFair enough :)
Here's a patch for D7.
Comment #5
ergonlogic... and one for D6
Comment #6
ergonlogic#5: deleting_last_profile_field_requires_cache_clear_396136_5.patch queued for re-testing.