* [bug#52736,done,2h] Process multiple users.

This commit is contained in:
daitingting
2024-07-26 17:11:38 +08:00
committed by 綦新志
parent 5c3dbac472
commit a348ddf13f
4 changed files with 15 additions and 0 deletions
+1
View File
@@ -182,6 +182,7 @@ $config->pivot->objectTableFields->story = array();
$config->pivot->objectTableFields->story['title']['title'] = $lang->pivot->drill->storyName;
$config->pivot->objectTableFields->story['title']['link'] = array('url' => helper::createLink('{type}', 'view', 'storyID={id}'), 'target' => '_blank');
$config->pivot->objectTableFields->story['reviewer']['name'] = 'reviewedBy';
$config->pivot->objectTableFields->story['reviewer']['type'] = 'user';
$config->pivot->objectTableFields->testcase = array();
$config->pivot->objectTableFields->testcase['id']['name'] = 'id';
+1
View File
@@ -2528,6 +2528,7 @@ class pivotModel extends model
if((!in_array($fieldKey, $nameTypeCols) && $settingKey == 'link') || $object == 'doc') unset($fieldSetting['link']);
if(isset($this->config->pivot->objectTableFields->$object[$fieldKey][$settingKey])) $fieldSetting[$settingKey] = $this->config->pivot->objectTableFields->$object[$fieldKey][$settingKey];
}
$cols[$fieldKey] = $fieldSetting;
}
}
+12
View File
@@ -16,6 +16,18 @@ modalHeader
set::title($lang->pivot->step3->drillView)
);
foreach($datas as $index => $data)
{
foreach($data as $key => $value)
{
foreach($cols as $col)
{
if($col['name'] != $key) continue;
if($col['type'] == 'user' && strpos($value, ',') !== false) $datas[$index]->$key = explode(',', $value);
}
}
}
dtable
(
$from == 'screen' ? set::_class('dark') : null,
+1
View File
@@ -130,6 +130,7 @@ $config->story->dtable->fieldList['estimate']['show'] = true;
$config->story->dtable->fieldList['estimate']['group'] = 5;
$config->story->dtable->fieldList['reviewer']['name'] = 'reviewer';
$config->story->dtable->fieldList['reviewer']['type'] = 'text';
$config->story->dtable->fieldList['reviewer']['title'] = $lang->story->reviewer;
$config->story->dtable->fieldList['reviewer']['width'] = '100';
$config->story->dtable->fieldList['reviewer']['sortType'] = false;