From 669b0c59eed287c33c171219671ca261fe049f25 Mon Sep 17 00:00:00 2001 From: xushenjie Date: Thu, 4 May 2023 10:02:57 +0000 Subject: [PATCH] * Added the TODO module batch created form validation configuration. --- module/todo/config/form.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/module/todo/config/form.php b/module/todo/config/form.php index 43f4b11e94..a59272152f 100644 --- a/module/todo/config/form.php +++ b/module/todo/config/form.php @@ -1,6 +1,7 @@ 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'); \ No newline at end of file +$config->todo->export->form['exportType'] = array('required' => true, 'type' => 'string');