@@ -, +, @@ --- authorities/authorities.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/authorities/authorities.pl +++ a/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 : ''; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -199,7 +199,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 @@ -230,7 +230,6 @@ function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { value: $(this).val() })); }); - $('body').append(form); form.submit(); form.remove(); --