* [bug#52736,done,2h] Process multiple users.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user