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

(-)a/members/discharge.pl (-1 / +3 lines)
Lines 90-100 if ( $input->param('discharge') and $can_be_discharged ) { Link Here
90
        my @lines = <$fh>;
90
        my @lines = <$fh>;
91
        close $fh;
91
        close $fh;
92
        print @lines;
92
        print @lines;
93
        exit;
94
    };
93
    };
95
    if ( $@ ) {
94
    if ( $@ ) {
96
        carp $@;
95
        carp $@;
97
        $template->param( messages => [ {type => 'error', code => 'unable_to_generate_pdf'} ] );
96
        $template->param( messages => [ {type => 'error', code => 'unable_to_generate_pdf'} ] );
97
    } else {
98
        # no error, pdf is sent, so stop sending data to browser
99
        exit;
98
    }
100
    }
99
}
101
}
100
102
(-)a/opac/opac-discharge.pl (-2 / +3 lines)
Lines 99-109 elsif ( $op eq 'get' ) { Link Here
99
        my @lines = <$fh>;
99
        my @lines = <$fh>;
100
        close $fh;
100
        close $fh;
101
        print @lines;
101
        print @lines;
102
        exit;
103
    };
102
    };
104
    if ( $@ ) {
103
    if ( $@ ) {
105
        carp $@;
104
        carp $@;
106
        $template->param( messages => [ {type => 'error', code => 'unable_to_generate_pdf'} ] );
105
        $template->param( messages => [ {type => 'error', code => 'unable_to_generate_pdf'} ] );
106
    } else {
107
        # no error, pdf is sent, so stop sending data to browser
108
        exit;
107
    }
109
    }
108
}
110
}
109
else {
111
else {
110
- 

Return to bug 23723