* fix a bug for select talbe by module.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user