* Use required config of edit in batchedit.

This commit is contained in:
liumengyi
2024-01-26 14:38:13 +08:00
parent 225e5d079a
commit a7f92ded2f
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -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;
-1
View File
@@ -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';