From 1077ff6b089ca4cb5417dc9b5f45839c0a82b140 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 2 Dec 2007 13:41:41 -0600 Subject: [PATCH] bug 1570: return to same tab if cancelling preference edit Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- admin/systempreferences.pl | 2 ++ .../prog/en/modules/admin/systempreferences.tmpl | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 79062dcf99..650e36cd78 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -361,6 +361,8 @@ if ($op eq 'add_form') { $data=$sth->fetchrow_hashref; $sth->finish; $template->param(modify => 1); + # save tab to return to if user cancels edit + $template->param(return_tab => $tabsysprefs{$searchfield}); } my @options; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl index b1968504fe..d512fae46b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl @@ -116,7 +116,13 @@ -
Cancel
+
+ + ">Cancel + + Cancel + +
Koha internal -- 2.39.5