From 68713d36f74adbd4d6a885cfa63184bb255e4c6a 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- authorities/authorities.pl | 1 + .../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 bf555aa5c7..7131254b65 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 ea601cd2bf..a76c73ac57 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.39.5