diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
index 7cd1068..effc254 100644
--- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
@@ -55,7 +55,8 @@ if (checkSession()) {
$oPatternCustom = & new PatternCustom();
- $oPatternCustom->setHtml(getDocumentEmailPage($oDocument));
+ $oUserArray = User::getList();
+ $oPatternCustom->setHtml(getDocumentEmailPage($oDocument,$oUserArray));
$main->setErrorMessage("The email address you entered was invalid. Please enter
" .
"an email address of the form someone@somewhere.some postfix");
$main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fSendEmail=1");
@@ -67,9 +68,10 @@ if (checkSession()) {
//ask for an email address
require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
-
+
+ $oUserArray = User::getList();
$oPatternCustom = & new PatternCustom();
- $oPatternCustom->setHtml(getDocumentEmailPage($oDocument));
+ $oPatternCustom->setHtml(getDocumentEmailPage($oDocument,$oUserArray));
$main->setCentralPayload($oPatternCustom);
$main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fSendEmail=1");
$main->render();
diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailUI.inc
index 2d8aa8f..f3de496 100644
--- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailUI.inc
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailUI.inc
@@ -28,13 +28,25 @@ function getDocumentPath($oDocument) {
return "
\n";
}
-function getDocumentEmailPage($oDocument) {
+function getDocumentEmailPage($oDocument,$oUserArray) {
global $default;
$sToRender = renderHeading("Email document link");
$sToRender .= getDocumentPath($oDocument) . "\n
\n";
- $sToRender .= "