* Fix bug #109879, remove name from required fields if the todo type isn't custom.

This commit is contained in:
liumengyi
2024-01-02 15:11:12 +08:00
parent 56bdf442f9
commit 52168cc7fc
+5
View File
@@ -42,6 +42,11 @@ class todo extends control
if(!empty($_POST))
{
if($this->post->type != 'custom')
{
$this->config->todo->create->requiredFields = '';
$this->config->todo->create->form['name']['required'] = false;
}
$form = form::data($this->config->todo->create->form);
$form = $this->todoZen->addCycleYearConfig($form);
$todoData = $this->todoZen->beforeCreate($form);