This commit is contained in:
tianshujie
2024-02-20 15:48:45 +08:00
parent 3669ab71b6
commit e163db6e86
+3
View File
@@ -178,6 +178,9 @@ class todoZen extends todo
if(isset($object->title)) $todo->name = $object->title;
}
$isModuleType = isset($todo->type) && in_array($todo->type, $this->config->todo->moduleList);
if($isModuleType && empty($todo->objectID)) dao::$errors[$todo->type] = sprintf($this->lang->error->notempty, $this->lang->todo->name);
if($todo->end < $todo->begin)
{
dao::$errors['end'] = sprintf($this->lang->error->gt, $this->lang->todo->end, $this->lang->todo->begin);