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

(-)a/opac/svc/club/cancel_enrollment (-1 / +1 lines)
Lines 42-47 my $enrollment = Koha::Club::Enrollments->find($id); Link Here
42
$enrollment->cancel();
42
$enrollment->cancel();
43
43
44
binmode STDOUT, ':encoding(UTF-8)';
44
binmode STDOUT, ':encoding(UTF-8)';
45
print $cgi->header( -type => 'text/plain', -charset => 'UTF-8' );
45
print $cgi->header( -type => 'application/json', -charset => 'UTF-8' );
46
46
47
print to_json( { success => $enrollment ? 1 : 0 } );
47
print to_json( { success => $enrollment ? 1 : 0 } );
(-)a/opac/svc/club/enroll (-2 / +1 lines)
Lines 72-77 if ( $borrowernumber && $id ) { Link Here
72
}
72
}
73
73
74
binmode STDOUT, ':encoding(UTF-8)';
74
binmode STDOUT, ':encoding(UTF-8)';
75
print $cgi->header( -type => 'text/plain', -charset => 'UTF-8' );
75
print $cgi->header( -type => 'application/json', -charset => 'UTF-8' );
76
76
77
print to_json( { success => $enrollment ? 1 : 0 } );
77
print to_json( { success => $enrollment ? 1 : 0 } );
78
- 

Return to bug 36418