Commit bb8d94f8a36d19f51ec029d147060ac11d8253c3
1 parent
919d4475
Get rid of unused copied-and-pasted code.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3422 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
21 deletions
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupUnitBL.php
| @@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
| 27 | 27 | ||
| 28 | require_once("../../../../../config/dmsDefaults.php"); | 28 | require_once("../../../../../config/dmsDefaults.php"); |
| 29 | 29 | ||
| 30 | -KTUtil::extractGPC('fDeleteConfirmed', 'fGroupID', 'fOtherGroupID', 'fUnitSet', 'fUserID', 'fUserSet'); | 30 | +KTUtil::extractGPC('fDeleteConfirmed', 'fGroupID', 'fOtherGroupID', 'fUnitSet', 'fUnitID', 'fUserSet'); |
| 31 | 31 | ||
| 32 | if (checkSession()) { | 32 | if (checkSession()) { |
| 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); | 33 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| @@ -60,26 +60,6 @@ if (checkSession()) { | @@ -60,26 +60,6 @@ if (checkSession()) { | ||
| 60 | $main->setFormAction($_SERVER["PHP_SELF"] . "?fUserSet=1"); | 60 | $main->setFormAction($_SERVER["PHP_SELF"] . "?fUserSet=1"); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | - if(isset($fUnitSet)) { | ||
| 64 | - if($fOtherGroupID) { | ||
| 65 | - $oPatternCustom->setHtml("Add"); | ||
| 66 | - } else { | ||
| 67 | - $oPatternCustom->setHtml("Delete"); | ||
| 68 | - $main->setFormAction($_SERVER["PHP_SELF"] . "?fDeleteConfirmed=1&fGroupID=$fGroupID"); | ||
| 69 | - } | ||
| 70 | - } | ||
| 71 | - | ||
| 72 | - if (isset($fDeleteConfirmed)) { | ||
| 73 | - // else add to db and then goto page succes | ||
| 74 | - $oUserGroup = new GroupUserLink($fGroupID, $fUserID); | ||
| 75 | - $oUserGroup->setUserGroupID($fGroupID,$fUserID); | ||
| 76 | - if($oUserGroup->delete()) { | ||
| 77 | - $oPatternCustom->setHtml(getPageSuccess()); | ||
| 78 | - } else { | ||
| 79 | - $oPatternCustom->setHtml(getPageFail()); | ||
| 80 | - } | ||
| 81 | - } | ||
| 82 | - | ||
| 83 | // render page | 63 | // render page |
| 84 | $main->setCentralPayload($oPatternCustom); | 64 | $main->setCentralPayload($oPatternCustom); |
| 85 | $main->render(); | 65 | $main->render(); |