* Fix dtable setting for change page.
This commit is contained in:
@@ -160,19 +160,21 @@ foreach($story->executions as $executionID => $execution)
|
||||
);
|
||||
$affectedProjects[] = dtable
|
||||
(
|
||||
col($config->story->affect->projects->fields),
|
||||
data(array_values($story->tasks[$executionID]))
|
||||
set::cols($config->story->affect->projects->fields),
|
||||
set::data(array_values($story->tasks[$executionID]))
|
||||
);
|
||||
}
|
||||
|
||||
$formItems['affected'] = formGroup
|
||||
(
|
||||
set::width('full'),
|
||||
setClass('w-full'),
|
||||
set::label($lang->story->checkAffection),
|
||||
tabs
|
||||
(
|
||||
setClass('w-full'),
|
||||
tabPane
|
||||
(
|
||||
to::suffix(label($affectedTaskCount)),
|
||||
set::key('affectedProjects'),
|
||||
set::title($lang->story->affectedProjects),
|
||||
set::active(true),
|
||||
@@ -180,32 +182,35 @@ $formItems['affected'] = formGroup
|
||||
),
|
||||
tabPane
|
||||
(
|
||||
to::suffix(label(count($story->bugs))),
|
||||
set::key('affectedBugs'),
|
||||
set::title($lang->story->affectedBugs),
|
||||
empty($story->bugs) ? null : dtable
|
||||
(
|
||||
col($config->story->affect->bugs->fields),
|
||||
data(array_values($story->bugs))
|
||||
set::cols($config->story->affect->bugs->fields),
|
||||
set::data(array_values($story->bugs))
|
||||
)
|
||||
),
|
||||
tabPane
|
||||
(
|
||||
to::suffix(label(count($story->cases))),
|
||||
set::key('affectedCases'),
|
||||
set::title($lang->story->affectedCases),
|
||||
empty($story->cases) ? null : dtable
|
||||
(
|
||||
col($config->story->affect->cases->fields),
|
||||
data(array_values($story->cases))
|
||||
set::cols($config->story->affect->cases->fields),
|
||||
set::data(array_values($story->cases))
|
||||
)
|
||||
),
|
||||
empty($story->twins) ? null : tabPane
|
||||
(
|
||||
to::suffix(label(count($story->twins))),
|
||||
set::key('affectedTwins'),
|
||||
set::title($lang->story->affectedTwins),
|
||||
dtable
|
||||
(
|
||||
col($config->story->affect->twins->fields),
|
||||
data(array_values($story->twins))
|
||||
set::cols($config->story->affect->twins->fields),
|
||||
set::data(array_values($story->twins))
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user