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 200-206 function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { Link Here
200
            // Create a new form that will be POSTed in the new window
200
            // Create a new form that will be POSTed in the new window
201
            var form = $('<form>').attr({
201
            var form = $('<form>').attr({
202
            method: 'post',
202
            method: 'post',
203
            action: "/cgi-bin/authorities/authorities.pl",
203
            action: "/cgi-bin/koha/authorities/authorities.pl",
204
            target: "new_auth_popup"
204
            target: "new_auth_popup"
205
            });
205
            });
206
            //add the authtypecode
206
            //add the authtypecode
Lines 231-237 function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { Link Here
231
                    value: $(this).val()
231
                    value: $(this).val()
232
                }));
232
                }));
233
            });
233
            });
234
235
            $('body').append(form);
234
            $('body').append(form);
236
            form.submit();
235
            form.submit();
237
            form.remove();
236
            form.remove();
238
- 

Return to bug 11299