diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt
index 2c32aff3f1..2d36fe08cf 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt
@@ -620,6 +620,10 @@
Request details
Details from library
+ [% copyrightclearance_confirmed = request.extended_attributes.find({'type'=>'copyrightclearance_confirmed'}).value %]
+ [% IF copyrightclearance_confirmed %]
+
Patron has confirmed copyright clearance for this request
+ [% END %]
[% IF request.orderid %]
@@ -633,10 +637,6 @@
Patron:
[% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
[% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %]
- [% copyrightclearance_confirmed = request.extended_attributes.find({'type'=>'copyrightclearance_confirmed'}).value %]
- [% IF copyrightclearance_confirmed %]
- Patron has confirmed copyright clearance for this request
- [% END %]
[% END %]
[% IF request.biblio_id %]
diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl
index 6002207ed8..6bbd293902 100755
--- a/opac/opac-illrequests.pl
+++ b/opac/opac-illrequests.pl
@@ -200,6 +200,15 @@ if ( $op eq 'list' ) {
);
if ( $backend_result->{stage} eq 'commit' ) {
+ $request->extended_attributes(
+ [
+ {
+ type => 'copyrightclearance_confirmed',
+ value => 1,
+ }
+ ]
+ ) if $params->{copyrightclearance_confirmed};
+
# After creation actions
if ( $params->{type_disclaimer_submitted} ) {
$type_disclaimer->after_request_created( $params, $request );
@@ -233,14 +242,6 @@ if ( $op eq 'list' ) {
$session->flush;
print $query->redirect('/cgi-bin/koha/opac-illrequests-unauthenticated.pl');
} else {
- $request->extended_attributes(
- [
- {
- type => 'copyrightclearance_confirmed',
- value => 1,
- }
- ]
- ) if $params->{copyrightclearance_confirmed};
print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2');
exit;
}