From a7efa8783148b1b98289dced6efbb94b1b52d0bd Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 18 Mar 2026 14:40:25 +0100 Subject: [PATCH] objects may not be marked for batch operation, take all if none is marked --- views/bootstrap/class.Search.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 55fd19f91..0f01ddac3 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -87,8 +87,10 @@ $(document).ready( function() { if(this.checked) values[this.name] = 1; }); - url += '&'+$.param(values); - if($('#batchcategory').val() && Object.keys(values).length > 0) { + if(Object.keys(values).length > 0) { + url += '&'+$.param(values); + } + if($('#batchcategory').val()/* && Object.keys(values).length > 0*/) { SeedDMSBox.redirect(url, { 'message': confirmmsg, 'cancelLabel': '', @@ -108,8 +110,10 @@ $(document).ready( function() { if(this.checked) values[this.name] = 1; }); - url += '&'+$.param(values); - if($('#newowner').val() && Object.keys(values).length > 0) { + if(Object.keys(values).length > 0) { + url += '&'+$.param(values); + } + if($('#newowner').val() /*&& Object.keys(values).length > 0*/) { SeedDMSBox.redirect(url, { 'message': confirmmsg, 'cancelLabel': '', @@ -130,8 +134,10 @@ console.log('add reviewer '+$('#addreviewer').val()); if(this.checked) values[this.name] = 1; }); - url += '&'+$.param(values); - if($('#addreviewer').val() && Object.keys(values).length > 0) { + if(Object.keys(values).length > 0) { + url += '&'+$.param(values); + } + if($('#addreviewer').val()/* && Object.keys(values).length > 0*/) { SeedDMSBox.redirect(url, { 'message': confirmmsg, 'cancelLabel': '', @@ -152,8 +158,10 @@ console.log('add approver '+$('#addapprover').val()); if(this.checked) values[this.name] = 1; }); - url += '&'+$.param(values); - if($('#addapprover').val() && Object.keys(values).length > 0) { + if(Object.keys(values).length > 0) { + url += '&'+$.param(values); + } + if($('#addapprover').val()/* && Object.keys(values).length > 0*/) { SeedDMSBox.redirect(url, { 'message': confirmmsg, 'cancelLabel': '',