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

(-)a/admin/file_transports.pl (-2 / +2 lines)
Lines 49-55 if ( $op eq 'cud-add' ) { Link Here
49
    my $host               = $input->param('host')      || 'localhost';
49
    my $host               = $input->param('host')      || 'localhost';
50
    my $port               = $input->param('port')      || 22;
50
    my $port               = $input->param('port')      || 22;
51
    my $transport          = $input->param('transport') || 'sftp';
51
    my $transport          = $input->param('transport') || 'sftp';
52
    my $passive            = ( scalar $input->param('passiv') ) ? 1 : 0;
52
    my $passive            = ( scalar $input->param('passive') ) ? 1 : 0;
53
    my $auth_mode          = $input->param('auth_mode')          || 'password';
53
    my $auth_mode          = $input->param('auth_mode')          || 'password';
54
    my $user_name          = $input->param('user_name')          || undef;
54
    my $user_name          = $input->param('user_name')          || undef;
55
    my $password           = $input->param('password')           || undef;
55
    my $password           = $input->param('password')           || undef;
Lines 139-145 if ( $op eq 'cud-add' ) { Link Here
139
        my $host               = $input->param('host')      || 'localhost';
139
        my $host               = $input->param('host')      || 'localhost';
140
        my $port               = $input->param('port')      || 22;
140
        my $port               = $input->param('port')      || 22;
141
        my $transport          = $input->param('transport') || 'sftp';
141
        my $transport          = $input->param('transport') || 'sftp';
142
        my $passive            = ( scalar $input->param('passiv') ) ? 1 : 0;
142
        my $passive            = ( scalar $input->param('passive') ) ? 1 : 0;
143
        my $auth_mode          = $input->param('auth_mode')          || 'password';
143
        my $auth_mode          = $input->param('auth_mode')          || 'password';
144
        my $user_name          = $input->param('user_name')          || undef;
144
        my $user_name          = $input->param('user_name')          || undef;
145
        my $password           = $input->param('password')           || undef;
145
        my $password           = $input->param('password')           || undef;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/file_transports.tt (-2 / +5 lines)
Lines 502-508 Link Here
502
                    {
502
                    {
503
                        "data": "transport",
503
                        "data": "transport",
504
                        "render": function(data, type, row, meta) {
504
                        "render": function(data, type, row, meta) {
505
                            return data.toUpperCase();
505
                            var transport = data.toUpperCase();
506
                            if (data == "ftp" && row.passive == 1) {
507
                                transport += " [% tp('FTP connection mode', '(passive)') %]";
508
                            }
509
                            return transport;
506
                        },
510
                        },
507
                        "searchable": true,
511
                        "searchable": true,
508
                        "orderable": false
512
                        "orderable": false
509
- 

Return to bug 41798