Commit b48da5688e45077dc42324b94206838d0d754302
1 parent
0dce30b7
(#2945) only supply a value for the checkbox if one has been passed.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2717 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc
| @@ -80,7 +80,7 @@ function getDetailsDBPage($sUserName, $aAttributes) { | @@ -80,7 +80,7 @@ function getDetailsDBPage($sUserName, $aAttributes) { | ||
| 80 | $sToRender .= "<td>Mobile: </td><td><input size = \"40\" type=\"text\" name=\"fMobile\" value = \"" . $aUserAttributes["mobile"] ."\"> </td>\n"; | 80 | $sToRender .= "<td>Mobile: </td><td><input size = \"40\" type=\"text\" name=\"fMobile\" value = \"" . $aUserAttributes["mobile"] ."\"> </td>\n"; |
| 81 | $sToRender .= "</tr>\n"; | 81 | $sToRender .= "</tr>\n"; |
| 82 | $sToRender .= "<tr>\n"; | 82 | $sToRender .= "<tr>\n"; |
| 83 | - $sToRender .= "<td>Email Notification: </td><td><input type=\"checkbox\" name=\"fEmailNotification\" value=\"" . $aUserAttributes["email_notification"] . "\" " . ($aUserAttributes["email_notification"] == "1" ? "checked" : "") . "\"> </td>\n"; | 83 | + $sToRender .= "<td>Email Notification: </td><td><input type=\"checkbox\" name=\"fEmailNotification\" " . (isset($aUserAttributes["email_notification"]) ? "value=\"" . $aUserAttributes["email_notification"] . "\" " : "") . ($aUserAttributes["email_notification"] == "1" ? "checked" : "") . "\"> </td>\n"; |
| 84 | $sToRender .= "</tr>\n"; | 84 | $sToRender .= "</tr>\n"; |
| 85 | $sToRender .= "<tr><td><b>Initial Group</b></td><td>" . getGroupListBox() . "</td></tr>\n"; | 85 | $sToRender .= "<tr><td><b>Initial Group</b></td><td>" . getGroupListBox() . "</td></tr>\n"; |
| 86 | $sToRender .= "<tr>\n"; | 86 | $sToRender .= "<tr>\n"; |