From d2a589b1bf1599aae1d3a5f1a3bf5fdf62dd8bd2 Mon Sep 17 00:00:00 2001 From: chentao Date: Tue, 4 Jul 2023 17:00:34 +0800 Subject: [PATCH] * Modify the configuration of the submit form on the batch story creation page. --- module/story/config/form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/config/form.php b/module/story/config/form.php index 158f623ca5..795432231b 100644 --- a/module/story/config/form.php +++ b/module/story/config/form.php @@ -35,13 +35,13 @@ $config->story->form->create['version'] = array('type' => 'int', 'contro $config->story->form->create['openedBy'] = array('type' => 'string', 'control' => '', 'required' => false, 'default' => $app->user->account); $config->story->form->create['openedDate'] = array('type' => 'string', 'control' => '', 'required' => false, 'default' => helper::now()); -$config->story->form->batchCreate = array(); +$config->story->form->batchCreate = common::formConfig('story', 'batchCreate'); $config->story->form->batchCreate['branch'] = array('type' => 'int', 'control' => 'select', 'required' => false, 'default' => 0, 'options' => array()); $config->story->form->batchCreate['module'] = array('type' => 'int', 'control' => 'select', 'required' => false, 'default' => 0, 'options' => array()); $config->story->form->batchCreate['plan'] = array('type' => 'int', 'control' => 'select', 'required' => false, 'default' => 0, 'options' => array()); $config->story->form->batchCreate['region'] = array('type' => 'int', 'control' => 'select', 'required' => false, 'default' => 0, 'options' => array()); $config->story->form->batchCreate['lane'] = array('type' => 'int', 'control' => 'select', 'required' => false, 'default' => 0, 'options' => array()); -$config->story->form->batchCreate['title'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'filter' => 'trim'); +$config->story->form->batchCreate['title'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'filter' => 'trim', 'base' => true); $config->story->form->batchCreate['color'] = array('type' => 'string', 'control' => 'color', 'required' => false, 'default' => ''); $config->story->form->batchCreate['spec'] = array('type' => 'string', 'control' => 'textarea', 'required' => false, 'default' => ''); $config->story->form->batchCreate['source'] = array('type' => 'string', 'control' => 'select', 'required' => false, 'default' => '', 'options' => $lang->story->sourceList);