Commit 822ec8362c8710bdbfc8e51f5a433124d91e004d
1 parent
84f7359c
KTS-1518 cont.
POST var was named incorrectly too. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6137 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
2 deletions
plugins/ktcore/admin/unitManagement.php
| ... | ... | @@ -145,9 +145,10 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { |
| 145 | 145 | 'redirect_to' => array('main'), |
| 146 | 146 | 'message' => _kt('Invalid folder chosen'), |
| 147 | 147 | ); |
| 148 | - $oParentFolder = $this->oValidator->validateFolder($_REQUEST['fFolderId'], $aOptions); | |
| 148 | + | |
| 149 | + $oParentFolder = $this->oValidator->validateFolder($_REQUEST['browse'], $aOptions); | |
| 149 | 150 | $aOptions = array( |
| 150 | - 'redirect_to' => array('addUnit', sprintf('fFolderId=%d', $oParentFolder->getId())), | |
| 151 | + 'redirect_to' => array('addUnit', sprintf('browse=%d', $oParentFolder->getId())), | |
| 151 | 152 | 'message' => _kt('No name given'), |
| 152 | 153 | ); |
| 153 | 154 | $sName = $this->oValidator->validateString($_REQUEST['unit_name'], $aOptions); | ... | ... |