* Use required config of edit in batchedit.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user