From ec52c025849a1b043734f0de5951dbdef9983147 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 22 Sep 2020 13:11:40 +0000 Subject: [PATCH] Bug 11299: (follow-up) correct link Signed-off-by: Michal Denar --- authorities/authorities.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 42b37596b1..4adead909c 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -567,6 +567,7 @@ my $linkid=$input->param('linkid'); my $authtypecode = $input->param('authtypecode'); my $breedingid = $input->param('breedingid'); + my $dbh = C4::Context->dbh; if(!$authtypecode) { $authtypecode = $authid ? Koha::Authorities->find($authid)->authtypecode : ''; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 0de4be343b..dcf1b11f9b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -200,7 +200,7 @@ function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { // Create a new form that will be POSTed in the new window var form = $('
').attr({ method: 'post', - action: "/cgi-bin/authorities/authorities.pl", + action: "/cgi-bin/koha/authorities/authorities.pl", target: "new_auth_popup" }); //add the authtypecode @@ -231,7 +231,6 @@ function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { value: $(this).val() })); }); - $('body').append(form); form.submit(); form.remove(); -- 2.11.0