* fix a bug for select talbe by module.

This commit is contained in:
wangyidong
2013-01-09 05:26:08 +00:00
parent 6842cbc41f
commit 0cb29714fd

View File

@@ -256,7 +256,7 @@ class model
{
$action = $this->loadModel('action')->getById($actionID);
if($action->action != 'deleted') return;
$table = $this->config->action->objectTables[$action->objectType];
$table = $this->config->objectTables[$action->objectType];
$this->dao->update($table)->set('deleted')->eq(0)->where('id')->eq($action->objectID)->exec();
$this->dao->update(TABLE_ACTION)->set('extra')->eq(ACTIONMODEL::BE_UNDELETED)->where('id')->eq($actionID)->exec();
$this->action->create($action->objectType, $action->objectID, 'undeleted');