* Added the TODO module batch created form validation configuration.

This commit is contained in:
xushenjie
2023-05-04 10:02:57 +00:00
parent e186b6bda6
commit 669b0c59ee
+15 -1
View File
@@ -1,6 +1,7 @@
<?php
declare(strict_types=1);
$config->todo->create = new stdClass;
$config->todo->create->form = array();
$config->todo->create->form['type'] = array('required' => true, 'type' => 'string');
$config->todo->create->form['name'] = array('required' => true, 'type' => 'string');
@@ -19,6 +20,19 @@ $config->todo->create->form['objectID'] = array('required' => false, 'type'
$config->todo->create->form['desc'] = array('required' => false, 'type' => 'string', 'default' => '');
$config->todo->create->form['uid'] = array('required' => false, 'type' => 'string', 'default' => '');
$config->todo->batchCreate = new stdClass;
$config->todo->batchCreate->form = array();
$config->todo->batchCreate->form['types'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['pris'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['names'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['descs'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['assignedTos'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['begins'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['ends'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['switchTime'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['date'] = array('required' => false, 'type' => 'array');
$config->todo->batchCreate->form['switchDate'] = array('required' => false, 'type' => 'array');
$config->todo->edit->form = array();
$config->todo->edit->form['name'] = array('required' => true, 'type' => 'string');
@@ -51,4 +65,4 @@ $config->todo->editDate->form['todoIDList'] = array('required' => true, 'type' =
$config->todo->export = new stdClass;
$config->todo->export->form = array();
$config->todo->export->form['exportType'] = array('required' => true, 'type' => 'string');
$config->todo->export->form['exportType'] = array('required' => true, 'type' => 'string');