View | Details | Raw Unified | Return to bug 11299
Collapse All | Expand All

(-)a/authorities/authorities.pl (+1 lines)
Lines 567-572 my $linkid=$input->param('linkid'); Link Here
567
my $authtypecode = $input->param('authtypecode');
567
my $authtypecode = $input->param('authtypecode');
568
my $breedingid    = $input->param('breedingid');
568
my $breedingid    = $input->param('breedingid');
569
569
570
570
my $dbh = C4::Context->dbh;
571
my $dbh = C4::Context->dbh;
571
if(!$authtypecode) {
572
if(!$authtypecode) {
572
    $authtypecode = $authid ? Koha::Authorities->find($authid)->authtypecode : '';
573
    $authtypecode = $authid ? Koha::Authorities->find($authid)->authtypecode : '';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-3 / +1 lines)
Lines 199-205 function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { Link Here
199
            // Create a new form that will be POSTed in the new window
199
            // Create a new form that will be POSTed in the new window
200
            var form = $('<form>').attr({
200
            var form = $('<form>').attr({
201
            method: 'post',
201
            method: 'post',
202
            action: "/cgi-bin/authorities/authorities.pl",
202
            action: "/cgi-bin/koha/authorities/authorities.pl",
203
            target: "new_auth_popup"
203
            target: "new_auth_popup"
204
            });
204
            });
205
            //add the authtypecode
205
            //add the authtypecode
Lines 230-236 function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { Link Here
230
                    value: $(this).val()
230
                    value: $(this).val()
231
                }));
231
                }));
232
            });
232
            });
233
234
            $('body').append(form);
233
            $('body').append(form);
235
            form.submit();
234
            form.submit();
236
            form.remove();
235
            form.remove();
237
- 

Return to bug 11299