Commit 92c3b82e authored by merlinofchaos's avatar merlinofchaos

#125819: Cancel button went to bad page after Clone/Add.

parent d96e5d7f
......@@ -35,6 +35,7 @@ Views 4.7.x-dev
o #130196: (the greenman) Views filters improperly ignored table aliasing.
o #130381: (mgull) Clear the page cache after a view is saved or deleted so that anonymous users will see changes.
o #133144: views filters weren't getting deleted when a view was deleted, causing cruft buildup.
o #125819: Cancel button went to bad page after Clone/Add.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -412,7 +412,7 @@ function views_ui_admin_export_page($vid = '') {
function views_ui_admin_add_page($template = NULL) {
$op = $_POST['op'];
if ($op == t('Cancel')) {
return 'admin/views';
drupal_goto('admin/views');
}
$view = _views_get_default_view($template);
......@@ -428,7 +428,7 @@ function views_ui_admin_add_page($template = NULL) {
function views_ui_admin_clone_page($viewname) {
$op = $_POST['op'];
if ($op == t('Cancel')) {
return 'admin/views';
drupal_goto('admin/views');
}
$view = views_load_view($viewname);
......
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