* [bug#65007,done,0.2h] fix branch field name attribute.
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user