This commit is contained in:
tianshujie
2024-01-02 14:28:06 +08:00
parent dc24a5fa77
commit f7b8798826
+6
View File
@@ -1890,6 +1890,12 @@ class treeModel extends model
}
}
if(empty($module->name))
{
dao::$errors['name'] = sprintf($this->lang->error->notempty, $this->lang->tree->name);
return false;
}
$modules = $self->type == 'story' ? $this->getOptionMenu($self->root, 'story', 0, 'all') : array();
$parent = $this->getById((int)$this->post->parent);