From ce81bde26fe30ecec4074287d4e1a4fcfac09da1 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 25 Apr 2011 13:28:08 +0200 Subject: config fix --- application/models/BootOsUserMapper.php | 2 +- application/modules/user/controllers/ConfigController.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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).'$')); -- cgit v1.2.3-55-g7522