* finish task #4821.

This commit is contained in:
wangyidong
2018-09-07 15:59:25 +08:00
parent 86ec6cd982
commit 909155c8f7
+5
View File
@@ -908,6 +908,11 @@ class actionModel extends model
die(js::locate(helper::createLink('project', 'edit', "projectID=$action->objectID&action=undelete&extra=$actionID"), 'parent'));
}
}
elseif($action->objectType == 'module')
{
$module = $this->dao->select('*')->from(TABLE_MODULE)->where('id')->eq($action->objectID)->fetch();
$this->loadModel('tree')->checkUnique($module->root, $module->type, $module->parent, array($module->name), array($module->branch));
}
/* Update deleted field in object table. */
$table = $this->config->objectTables[$action->objectType];