* [bug#65007,done,0.2h] fix branch field name attribute.

This commit is contained in:
tianshujie
2025-08-28 08:38:30 +08:00
parent 8a4bcb8526
commit f5bce6ec03
2 changed files with 2 additions and 12 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ $config->story->form->edit['renameFiles'] = array('type' => 'array', 'contr
$config->story->form->batchCreate = array();
$config->story->form->batchCreate['branch'] = array('ditto' => true, 'type' => 'int', 'control' => 'select', 'required' => false, 'width' => '200px', 'default' => 0, 'options' => array());
$config->story->form->batchCreate['module'] = array('ditto' => true, 'type' => 'int', 'control' => 'select', 'required' => false, 'width' => '200px', 'default' => 0, 'options' => array());
$config->story->form->batchCreate['module'] = array('ditto' => true, 'type' => 'int', 'control' => array('control' => 'picker', 'required' => true), 'required' => false, 'width' => '200px', 'default' => 0, 'options' => array());
$config->story->form->batchCreate['plan'] = array('ditto' => true, 'type' => 'array', 'control' => 'select', 'required' => false, 'width' => '200px', 'default' => 0, 'options' => array(), 'filter' => 'join');
$config->story->form->batchCreate['parent'] = array('ditto' => true, 'type' => 'int', 'control' => 'select', 'required' => false, 'width' => '200px', 'default' => 0, 'options' => array());
$config->story->form->batchCreate['grade'] = array('ditto' => true, 'type' => 'int', 'control' => 'select', 'required' => false, 'width' => '136px', 'default' => 1, 'options' => array());
+1 -11
View File
@@ -734,17 +734,7 @@ class storyZen extends story
/* 设置下拉菜单内容。 */
$fields['branch']['options'] = $branches;
switch ($product->type)
{
case 'normal':
unset($fields['branch']);
break;
case 'platform':
$fieldPlatform = array('platform' => $fields['branch']);
unset($fields['branch']);
$fields = array_merge($fieldPlatform, $fields);
break;
}
if($product->type == 'normal') unset($fields['branch']);
$fields['grade']['default'] = key($grades);
$fields['module']['options'] = $modules;