Commit aafb50da authored by merlinofchaos's avatar merlinofchaos
Browse files

#104941: Inline args URL cache not getting cleared when a view is saved.

parent 6712419a
......@@ -148,6 +148,7 @@ Views --dev
o #119082: Fixed a problem with view titles on the admin page.
o #119921: Recent comments block had incorrect filter, causing nodes with just 1 comment not to show up.
o #119463: Double check_plain on breadcrumbs for Views' titles.
o #104941: Inline args URL cache not getting cleared when a view is saved.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -957,6 +957,7 @@ function _views_save_view($view) {
foreach ($view->exposed_filter as $i => $arg) {
db_query("INSERT INTO {view_exposed_filter} (vid, field, label, optional, is_default, single, operator, position) VALUES (%d, '%s', '%s', %d, %d, %d, %d, %d)", $view->vid, $arg['field'], $arg['label'], $arg['optional'], $arg['is_default'], $arg['single'], $arg['operator'], $i);
}
cache_clear_all('views_urls', 'cache_views');
}
// ---------------------------------------------------------------------------
......
......@@ -98,7 +98,7 @@ function _views_get_tables($full = false) {
}
}
if ($data['list']) {
$data['value'] = array('#type' => 'select', '#options' => $data['list'], '#validate' => array('views_filter_validate_array' => $data['name']));
$data['value'] = array('#type' => 'select', '#options' => $data['list'], '#validate' => array('views_filter_validate_array' => array($data['name'])));
if ($data['list-type'] != 'select') {
$data['value']['#multiple'] = TRUE;
}
......
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