Commit c58fbf06 authored by merlinofchaos's avatar merlinofchaos

#86577: Added a form_alter to check for the profile form so that Views will...

#86577: Added a form_alter to check for the profile form so that Views will invalidate its cache when profile fields are added/edited.
parent b7e24fca
......@@ -13,6 +13,7 @@ Views 4.7.x-dev
o #138481: (fago) Allow 'delete' link to return to view like edit link does.
o #130019: Use the correct filter on textarea profile fields.
o #139381: (whalebeach) Invalid call to strpos fixed in views_set_breadcrumb
o #86577: Added a form_alter to check for the profile form so that Views will invalidate its cache when profile fields are added/edited.
New features:
o #132825: (lyricnz) Allow 'add comment' link as field.
......
......@@ -2270,3 +2270,10 @@ function _views_get_filter_values() {
return $values;
}
function views_form_alter($form_id, &$form) {
if ($form_id == 'profile_field_form') {
views_invalidate_cache();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment