This commit is contained in:
wangyidong
2024-01-31 16:06:08 +08:00
parent 51193cc6b7
commit 697197cec4
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -75,10 +75,10 @@ $config->story->form->batchCreate['region'] = array('ditto' => false, 'type'
$config->story->form->batchCreate['lane'] = array('ditto' => false, 'type' => 'int', 'control' => 'select', 'required' => false, 'default' => 0, 'options' => array());
$config->story->form->batchCreate['title'] = array('ditto' => false, 'type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim', 'base' => true);
$config->story->form->batchCreate['color'] = array('ditto' => false, 'type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
$config->story->form->batchCreate['spec'] = array('ditto' => false, 'type' => 'string', 'control' => 'textarea', 'required' => false, 'default' => '');
$config->story->form->batchCreate['spec'] = array('ditto' => false, 'type' => 'string', 'control' => 'text', 'required' => false, 'default' => '');
$config->story->form->batchCreate['source'] = array('ditto' => true, 'type' => 'string', 'control' => 'select', 'required' => false, 'default' => '', 'options' => $lang->story->sourceList);
$config->story->form->batchCreate['sourceNote'] = array('ditto' => false, 'type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
$config->story->form->batchCreate['verify'] = array('ditto' => false, 'type' => 'string', 'control' => 'textarea', 'required' => false, 'default' => '');
$config->story->form->batchCreate['verify'] = array('ditto' => false, 'type' => 'string', 'control' => 'text', 'required' => false, 'default' => '');
$config->story->form->batchCreate['category'] = array('ditto' => true, 'type' => 'string', 'control' => 'select', 'required' => false, 'default' => 'feature', 'options' => $lang->story->categoryList);
$config->story->form->batchCreate['pri'] = array('ditto' => false, 'type' => 'int', 'control' => 'select', 'required' => false, 'default' => $config->story->defaultPriority, 'options' => $lang->story->priList);
$config->story->form->batchCreate['estimate'] = array('ditto' => false, 'type' => 'float', 'control' => 'text', 'required' => false, 'default' => 0);
+5
View File
@@ -19,6 +19,11 @@ jsVar('productID', $productID);
!isAjaxRequest() && dropmenu();
foreach(explode(',', $this->config->story->create->requiredFields) as $requiredField)
{
if(isset($customFields[$requiredField]) and strpos(",{$showFields},", ",{$requiredField},") === false) $showFields .= ',' . $requiredField;
}
/* Generate fields for the batch create form. */
$fnGenerateFields = function() use ($lang, $fields, $stories, $customFields, $showFields)
{