* Fix bug #43883.
This commit is contained in:
@@ -5,7 +5,7 @@ global $lang, $config;
|
||||
$fields = defineFieldList('task');
|
||||
|
||||
$fields->field('execution')
|
||||
->hidden(data('execution.type') == 'kanban' && $config->vision != 'lite')
|
||||
->hidden((data('execution.type') == 'kanban' && $config->vision != 'lite') || empty(data('execution.multiple')))
|
||||
->control('picker')
|
||||
->items(data('executions'))
|
||||
->value(data('execution.id'));
|
||||
|
||||
@@ -68,11 +68,11 @@ $fields->field('assignedToBox')
|
||||
|
||||
/* Set name field width. */
|
||||
$nameWidth = 'w-1/2';
|
||||
if(empty(data('features.story')) && data('execution.type') != 'kanban') $nameWidth .= ' full:w-full';
|
||||
if(empty(data('features.story')) && data('execution.type') != 'kanban' && !empty(data('execution.multiple'))) $nameWidth .= ' full:w-full';
|
||||
if(data('execution.type') == 'kanban') $nameWidth .= ' lite:w-full';
|
||||
$fields->field('name')->className($nameWidth);
|
||||
|
||||
if(!empty(data('features.story')) && data('execution.type') == 'kanban')
|
||||
if(!empty(data('features.story')) && (data('execution.type') == 'kanban' || empty(data('execution.multiple'))))
|
||||
{
|
||||
$fields->field('module')->wrapBefore();
|
||||
}
|
||||
|
||||
@@ -28,14 +28,14 @@ $fields->autoLoad('execution', 'execution,type,name,assignedToBox,region,lane,mo
|
||||
|
||||
$fields->orders('name,assignedToBox', 'module,testStoryBox', 'desc,module,storyBox');
|
||||
$fields->fullModeOrders('type,module,storyBox,testStoryBox', 'desc,files,mailto,keywords');
|
||||
if($execution->type == 'kanban')
|
||||
if($execution->type == 'kanban' || empty(data('execution.multiple')))
|
||||
{
|
||||
$fields->orders('desc,module,storyBox', 'type,assignedToBox,region,lane');
|
||||
$fields->fullModeOrders('name,assignedToBox', 'type,module,storyBox,testStoryBox', 'desc,files,mailto,keywords');
|
||||
if(empty($features['story'])) $fields->fullModeOrders('type,module,storyBox', 'name,assignedToBox', 'desc,files,mailto,keywords');
|
||||
}
|
||||
|
||||
if(empty($features['story']) && $execution->type != 'kanban')
|
||||
if(empty($features['story']) && $execution->type != 'kanban' && !empty(data('execution.multiple')))
|
||||
{
|
||||
$fields->fullModeOrders('type,module,storyBox,testStoryBox,assignedToBox', 'desc,files,mailto,keywords');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user