Commit 92f1629c10bb3d0f4ad5998a70764847dffb2198

Authored by nbm
1 parent c2dbbf81

Don't put users we won't send email to anyway in the list to be chosen.

Submitted by:	Stefano Ciancio (sciancio)
SF Tracker:	1217458


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3343 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailUI.inc
... ... @@ -62,7 +62,7 @@ function renderUserPicker() {
62 62 $sToRender .= "<tr><td><select name=\"userSelect\" size=\"4\" multiple>\n";
63 63 $oUserArray = User::getList("ORDER BY name");/*ok*/
64 64 for ($i = 0; $i < count($oUserArray); $i++) {
65   - if(strlen($oUserArray[$i]->getEmail())>0){ // if an email address exists
  65 + if ((strlen($oUserArray[$i]->getEmail())>0) && $oUserArray[$i]->getEmailNotification()) {
66 66 $sToRender .= "<OPTION value=\"" . $oUserArray[$i]->getID() . "\" onDblClick=\"optUser.transferRight()\">\n";
67 67 $sToRender .= $oUserArray[$i]->getName();
68 68 $sToRender .= "</OPTION>\n";
... ...