From aedda2e0f24ae17b3637a5c76a51ba469d9945c0 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 6 Oct 2021 11:56:33 +0000 Subject: [PATCH] Bug 29093: (follow-up) Fix the all fields empty-warning Content-Type: text/plain; charset=utf-8 We should allow checking the TOC box only. Signed-off-by: Marcel de Rooy --- .../opac-tmpl/bootstrap/en/modules/opac-request-article.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt index d30d7a1197..79bb53c908 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt @@ -274,7 +274,7 @@ $(document).ready( function() { } // Check if all fields are blank - if( m.length == 0 && $('#title').val()=='' && $('#author').val()=='' && $('#volume').val()=='' && $('#issue').val()=='' && $('#date').val()=='' && $('#pages').val()=='' && $('#chapters').val()=='' && $('#patron_notes').val()=='' ) { + if( m.length == 0 && $('#title').val()=='' && $('#author').val()=='' && $('#volume').val()=='' && $('#issue').val()=='' && $('#date').val()=='' && $('#pages').val()=='' && $('#chapters').val()=='' && $('#patron_notes').val()=='' && !$('input[name="toc_request"]').prop('checked') ) { alert( _("Please fill in at least one field.") ); return 0; } -- 2.20.1