From 4ef7d3b06e6d9c47dace6ee4d28c01408328369f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 15 Mar 2021 10:13:08 +0100 Subject: [PATCH] show message if there is not user the doc can be transfered to --- views/bootstrap/class.TransferDocument.php | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/views/bootstrap/class.TransferDocument.php b/views/bootstrap/class.TransferDocument.php index bda1085ad..a40d5a8c4 100644 --- a/views/bootstrap/class.TransferDocument.php +++ b/views/bootstrap/class.TransferDocument.php @@ -40,7 +40,6 @@ class SeedDMS_View_TransferDocument extends SeedDMS_Bootstrap_Style { $this->contentStart(); $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document); $this->contentHeading(getMLText("transfer_document")); - $this->contentContainerStart(); ?>
@@ -48,10 +47,12 @@ class SeedDMS_View_TransferDocument extends SeedDMS_Bootstrap_Style { '; $owner = $document->getOwner(); + $hasusers = false; // set to true if at least one user is found foreach ($allusers as $currUser) { if ($currUser->isGuest() || ($currUser->getID() == $owner->getID())) continue; + $hasusers = true; $html .= "
contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */