Commit 43c508e585b8436cf14d492cbd01ea7551a7f8ea
1 parent
217b57a8
(#2946) removed sms notification from form
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2700 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
4 additions
and
7 deletions
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php
| ... | ... | @@ -46,7 +46,7 @@ if (checkSession()) { |
| 46 | 46 | $oAuth = new $default->authenticationClass; |
| 47 | 47 | // user attributes to search for |
| 48 | 48 | if ($default->authenticationClass == "DBAuthenticator") { |
| 49 | - $aAttributes = array ("username", "name", "email", "mobile", "email_notification", "sms_notification"); | |
| 49 | + $aAttributes = array ("username", "name", "email", "mobile", "email_notification"); | |
| 50 | 50 | $bLdap = false; |
| 51 | 51 | } else { |
| 52 | 52 | //if its using LDAP get these attributes |
| ... | ... | @@ -112,9 +112,9 @@ if (checkSession()) { |
| 112 | 112 | } else if(isset($fAddToDb)) { |
| 113 | 113 | // if db authentication |
| 114 | 114 | if(isset($fFromDb)) { |
| 115 | - $oUser = new User($fUsername,$fName,$fPassword,0,$fEmail,$fMobile,$fEmailNotification,$fSmsNotification,0,1,0); | |
| 115 | + $oUser = new User($fUsername,$fName,$fPassword,0,$fEmail,$fMobile,$fEmailNotification,false,0,1,0); | |
| 116 | 116 | } else { |
| 117 | - $oUser = new User($fUsername,$fName,0,0,$fEmail,$fMobile,$fEmailNotification,$fSmsNotification,$fLdap,1,0); | |
| 117 | + $oUser = new User($fUsername,$fName,0,0,$fEmail,$fMobile,$fEmailNotification,false,$fLdap,1,0); | |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if($oUser->create()) { |
| ... | ... | @@ -131,7 +131,7 @@ if (checkSession()) { |
| 131 | 131 | } |
| 132 | 132 | } else { |
| 133 | 133 | if ($default->authenticationClass == "DBAuthenticator") { |
| 134 | - $aAttributes = array("" => array ("username", "name", "email", "mobile", "email_notification", "sms_notification")); | |
| 134 | + $aAttributes = array("" => array ("username", "name", "email", "mobile", "email_notification")); | |
| 135 | 135 | $oPatternCustom->setHtml(getDetailsDBPage(null,$aAttributes)); |
| 136 | 136 | $main->setFormAction($_SERVER["PHP_SELF"]. "?fAddToDb=1&fFromDb=1"); |
| 137 | 137 | } else { | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc
| ... | ... | @@ -82,9 +82,6 @@ function getDetailsDBPage($sUserName, $aAttributes) { |
| 82 | 82 | $sToRender .= "<tr>\n"; |
| 83 | 83 | $sToRender .= "<td>Email Notification: </td><td><input type=\"checkbox\" name=\"fEmailNotification\" value=\"" . $aUserAttributes["email_notification"] . "\" " . ($aUserAttributes["email_notification"] == "1" ? "checked" : "") . "\"> </td>\n"; |
| 84 | 84 | $sToRender .= "</tr>\n"; |
| 85 | - $sToRender .= "<tr>\n"; | |
| 86 | - $sToRender .= "<td>Sms Notification: </td><td><input type=\"checkbox\" name=\"fSmsNotification\" value=\"" . $aUserAttributes["sms_notification"] . "\" " . ($aUserAttributes["sms_notification"] == "1" ? "checked" : "") . "> </td>\n"; | |
| 87 | - $sToRender .= "</tr>\n"; | |
| 88 | 85 | $sToRender .= "<tr><td><b>Initial Group</b></td><td>" . getGroupListBox() . "</td></tr>\n"; |
| 89 | 86 | $sToRender .= "<tr>\n"; |
| 90 | 87 | $sToRender .= "<td colspan=\"2\" align=\"right\">" . getAddButton() . getCancelButton("listUsers") . "</td>"; | ... | ... |