diff options
author | khoff <khoff> | 2003-04-21 21:29:35 +0000 |
---|---|---|
committer | khoff <khoff> | 2003-04-21 21:29:35 +0000 |
commit | fcfad3cd469df0df1beb2d54ea990a387915ebe2 (patch) | |
tree | 4a7f5a66bd110d5dce229b6cb45bf43554627eb8 /httemplate/edit/process/generic.cgi | |
parent | b938a41859030d3d3a126f39fa1b64b9211145a5 (diff) |
Navigation fixes.
Diffstat (limited to 'httemplate/edit/process/generic.cgi')
-rw-r--r-- | httemplate/edit/process/generic.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/process/generic.cgi b/httemplate/edit/process/generic.cgi index 751987f7a..9c54feb1d 100644 --- a/httemplate/edit/process/generic.cgi +++ b/httemplate/edit/process/generic.cgi @@ -27,6 +27,7 @@ use DBIx::DBSchema::Table; my $error; my $p2 = popurl(2); +my $p3 = popurl(3); my $table = $cgi->param('table'); my $dbdef = dbdef or die "Cannot fetch dbdef!"; @@ -56,7 +57,7 @@ if($pkey_val and (my $old = qsearchs($table, { $pkey, $pkey_val} ))) { } my $redirect_ok = (($cgi->param('redirect_ok')) ? - $cgi->param('redirect_ok') : $p2."view/$table.cgi"); + $cgi->param('redirect_ok') : $p3."browse/generic.cgi?$table"); my $redirect_error = (($cgi->param('redirect_error')) ? $cgi->param('redirect_error') : $cgi->referer()); @@ -64,6 +65,6 @@ if($error) { $cgi->param('error', $error); print $cgi->redirect($redirect_error . '?' . $cgi->query_string); } else { - print $cgi->redirect($redirect_ok . '?' .$pkey_val); + print $cgi->redirect($redirect_ok); } %> |