From ceddf4d5bfc3b8a3a8139ca47085bcfcb5826b54 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 24 Jan 2025 11:32:08 +0100 Subject: [PATCH] do not show content container if form has no visible fields --- views/bootstrap/class.ReceiptDocument.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.ReceiptDocument.php b/views/bootstrap/class.ReceiptDocument.php index 74cbc9ce1..db8f2fab8 100644 --- a/views/bootstrap/class.ReceiptDocument.php +++ b/views/bootstrap/class.ReceiptDocument.php @@ -117,7 +117,8 @@ $(document).ready(function() {
contentContainerStart(); + if (!$noreceiptcomment || $receiptreject) + $this->contentContainerStart(); if(!$noreceiptcomment) { $this->formField( getMLText("comment"), @@ -149,7 +150,8 @@ $(document).ready(function() { } else { echo ''; } - $this->contentContainerEnd(); + if (!$noreceiptcomment || $receiptreject) + $this->contentContainerEnd(); $this->formSubmit(getMLText('submit_receipt'), $receipttype.'Receipt'); ?> @@ -164,4 +166,3 @@ $(document).ready(function() { $this->htmlEndPage(); } /* }}} */ } -?>