From a7f92ded2ffdf00ae6108c2dce70b7aaff3101e4 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 26 Jan 2024 14:38:13 +0800 Subject: [PATCH] * Use required config of edit in batchedit. --- lib/form/form.class.php | 1 + module/project/config.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/form/form.class.php b/lib/form/form.class.php index bfbfe65d6c..2d14675daa 100644 --- a/lib/form/form.class.php +++ b/lib/form/form.class.php @@ -143,6 +143,7 @@ class form extends fixer $module = $app->getModuleName(); $method = $app->getMethodName(); if($method == 'batchcreate') $method = 'create'; + if($method == 'batchedit') $method = 'edit'; if(empty($config->$module->$method->requiredFields)) return $configObject; diff --git a/module/project/config.php b/module/project/config.php index b79e06c49e..4ce8640674 100755 --- a/module/project/config.php +++ b/module/project/config.php @@ -21,7 +21,6 @@ $config->project->edit = new stdclass(); $config->project->batchedit = new stdclass(); $config->project->create->requiredFields = 'name,begin,end'; $config->project->edit->requiredFields = 'name,begin,end'; -$config->project->batchedit->requiredFields = 'name,begin,end'; $config->project->start = new stdclass(); $config->project->start->requiredFields = 'realBegan';