summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/models/BootOsUserMapper.php2
-rw-r--r--application/modules/user/controllers/ConfigController.php2
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).'$'));