1 views_handler_relationship_groupwise_max.inc views_handler_relationship_groupwise_max::options_form_submit(&$form, &$form_state)

When the form is submitted, take sure to clear the subquery string cache.

File

core/modules/views/handlers/views_handler_relationship_groupwise_max.inc, line 165
Relationship for groupwise maximum handler.

Class

views_handler_relationship_groupwise_max
Relationship handler that allows a groupwise maximum of the linked in table. For a definition, see: http://dev.mysql.com/doc/refman/5.0/en/example-maximum-column-group-row.... In lay terms, instead of joining to get all matching records in the…

Code

function options_form_submit(&$form, &$form_state) {
  $cid = 'views_relationship_groupwise_max:' . $this->view->name . ':' . $this->view->current_display . ':' . $this->options['id'];
  cache('views_data')->delete($cid);
}