From 61df3291f601ff2a080198692906db1ce3b0778f 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 We should allow checking the TOC box only. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- .../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 e51eb1bd66..ffbf0d3df7 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.39.5