* fix the bug of when add user and list user.

This commit is contained in:
wangchunsheng
2009-11-06 02:19:03 +00:00
parent d120f437cd
commit be83f9f729
4 changed files with 30 additions and 18 deletions
+3 -1
View File
@@ -152,6 +152,7 @@ class user extends control
if(!empty($_POST))
{
$this->user->create($companyID);
if(dao::isError()) die(js::error(dao::getError()));
if($from == 'admin')
{
die(js::locate($this->createLink('admin', 'browseuser', "companyid={$this->app->company->id}"), 'parent'));
@@ -179,7 +180,8 @@ class user extends control
if(!empty($_POST))
{
$this->user->update($userID);
if($from == 'admin')
if(dao::isError()) die(js::error(dao::getError()));
if($from == 'admin')
{
die(js::locate($this->createLink('admin', 'browseuser', "companyid={$this->app->company->id}"), 'parent'));
}