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

(-)a/C4/ILSDI/Services.pm (-1 / +1 lines)
Lines 644-650 sub RenewLoan { Link Here
644
644
645
    # Add renewal if possible
645
    # Add renewal if possible
646
    my @renewal = CanBookBeRenewed( $borrowernumber, $itemnumber );
646
    my @renewal = CanBookBeRenewed( $borrowernumber, $itemnumber );
647
    if ( $renewal[0] ) { AddRenewal( $borrowernumber, $itemnumber ); }
647
    if ( $renewal[0] ) { AddRenewal( $borrowernumber, $itemnumber, $item->checkout->branchcode ); }
648
648
649
    my $issue = $item->checkout;
649
    my $issue = $item->checkout;
650
    return unless $issue; # FIXME should be handled
650
    return unless $issue; # FIXME should be handled
(-)a/opac/ilsdi.pl (-1 / +8 lines)
Lines 127-132 unless ( $cgi->param('service') ) { Link Here
127
    exit 0;
127
    exit 0;
128
}
128
}
129
129
130
# Set the userenv
131
C4::Context->_new_userenv(1);
132
C4::Context->set_userenv(
133
    undef, undef, undef, 'ILSDI', 'ILSDI', undef,
134
    undef, undef, undef, undef,  undef
135
);
136
C4::Context->interface('opac');
137
130
# If user requested a service description, then display it
138
# If user requested a service description, then display it
131
if ( scalar $cgi->param('service') eq "Describe" and any { scalar $cgi->param('verb') eq $_ } @services ) {
139
if ( scalar $cgi->param('service') eq "Describe" and any { scalar $cgi->param('verb') eq $_ } @services ) {
132
    my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
140
    my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
133
- 

Return to bug 24754