diff options
| author | michael pereira | 2011-04-25 13:28:08 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-25 13:28:08 +0200 |
| commit | ce81bde26fe30ecec4074287d4e1a4fcfac09da1 (patch) | |
| tree | da9a2752aa73b60023ff12e9304d6808990e9782 | |
| parent | kcl fix (diff) | |
| download | pbs2-ce81bde26fe30ecec4074287d4e1a4fcfac09da1.tar.gz pbs2-ce81bde26fe30ecec4074287d4e1a4fcfac09da1.tar.xz pbs2-ce81bde26fe30ecec4074287d4e1a4fcfac09da1.zip | |
config fix
| -rw-r--r-- | application/models/BootOsUserMapper.php | 2 | ||||
| -rw-r--r-- | application/modules/user/controllers/ConfigController.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/application/models/BootOsUserMapper.php b/application/models/BootOsUserMapper.php index a50fd02..f93cd3f 100644 --- a/application/models/BootOsUserMapper.php +++ b/application/models/BootOsUserMapper.php @@ -88,7 +88,7 @@ class Application_Model_BootOsUserMapper unset($data['bootosuserID']); return $this->getDbTable()->insert($data); } else { - $this->getDbTable()->update($data, array('bootosID = ?' => $id)); + $this->getDbTable()->update($data, array('bootosuserID = ?' => $id)); } } diff --git a/application/modules/user/controllers/ConfigController.php b/application/modules/user/controllers/ConfigController.php index 6acb697..c350677 100644 --- a/application/modules/user/controllers/ConfigController.php +++ b/application/modules/user/controllers/ConfigController.php @@ -361,6 +361,8 @@ class user_ConfigController extends Zend_Controller_Action $this->_redirect('/user/config/showconfig/type/'.$this->type.'/configID/'.$configID.'/modifyresult/forbidden'); } + $bootosuser->setID($bootosuserID); + $bootosuser->setConfigID($configID); $bootosuser->setHomepath(str_replace("%login-name%", $bootosuser->getLogin(), $bootosuser->getHomepath())); if($bootosuser->getPassword() != '%password%') $bootosuser->setPassword(crypt($bootosuser->getPassword(), '$6$'.randomString(8).'$')); |
