Commit d82460562c68b31deb39dbb80f8def83d9b68c3c
1 parent
8c30caee
(#2989) added all parameters to add page and redirect to list page on success
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2715 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
6 additions
and
7 deletions
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/addRoleUI.inc
| ... | ... | @@ -28,10 +28,11 @@ |
| 28 | 28 | function getPage() { |
| 29 | 29 | |
| 30 | 30 | global $default; |
| 31 | - $aDisplayRowNames = array("Name: "); | |
| 32 | - $aParameterNumbers = array(0); | |
| 33 | - $aDisplayColumnTypes = array(1); | |
| 34 | - $aRequired = array(1); | |
| 31 | + | |
| 32 | + $aDisplayRowNames = array("Name", "Read", "Write"); | |
| 33 | + $aParameterNumbers = array(0,1,2); | |
| 34 | + $aDisplayColumnTypes = array(1,2,2); | |
| 35 | + $aRequired = array(1,1,1); | |
| 35 | 36 | |
| 36 | 37 | // create a text field that is required |
| 37 | 38 | $oPatternCreate = & new PatternCreate("Role", "roles/Role.inc",$aDisplayRowNames, $aParameterNumbers, $aDisplayColumnTypes, $aRequired); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/editRoleBL.php
| ... | ... | @@ -43,13 +43,11 @@ if (checkSession()) { |
| 43 | 43 | |
| 44 | 44 | // if a new group has been added |
| 45 | 45 | if (isset($fFromCreate)) { |
| 46 | - | |
| 47 | 46 | if($fRoleID == -1) { |
| 48 | 47 | $oPatternCustom->setHtml(getAddFailPage()); |
| 49 | 48 | } else { |
| 50 | - $oPatternCustom->setHtml(getCreatePage($fRoleID)); | |
| 49 | + controllerRedirect("listRoles"); | |
| 51 | 50 | } |
| 52 | - | |
| 53 | 51 | $main->setFormAction("$default->rootUrl/presentation/lookAndFeel/knowledgeTree/store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=listRoles")); |
| 54 | 52 | |
| 55 | 53 | // coming from manual edit page | ... | ... |