Commit e37f67a9df4f819a45b89e86324b78e9d9f38fc8
1 parent
1cd94361
(#2988) changed to redirect to list page on success
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2712 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
4 deletions
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleBL.php
| ... | ... | @@ -50,7 +50,7 @@ if (checkSession()) { |
| 50 | 50 | $oPatternCustom->setHtml(getCreatePage($fRoleID)); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - $main->setFormAction("$default->rootUrl/presentation/lookAndFeel/knowledgeTree/store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=editRoleSuccess")); | |
| 53 | + $main->setFormAction("$default->rootUrl/presentation/lookAndFeel/knowledgeTree/store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=listRoles")); | |
| 54 | 54 | |
| 55 | 55 | // coming from manual edit page |
| 56 | 56 | } |
| ... | ... | @@ -77,9 +77,8 @@ if (checkSession()) { |
| 77 | 77 | $oRole->setWriteable(false); |
| 78 | 78 | } |
| 79 | 79 | if ($oRole->update()) { |
| 80 | - // if successfull print out success message | |
| 81 | - $oPatternCustom->setHtml(getEditPageSuccess()); | |
| 82 | - | |
| 80 | + // if successfull redirec to list page | |
| 81 | + controllerRedirect("listRoles"); | |
| 83 | 82 | } else { |
| 84 | 83 | // if fail print out fail message |
| 85 | 84 | $oPatternCustom->setHtml(getEditPageFail()); | ... | ... |