* @package bug * @link https://www.zentao.net */ namespace zin; $items = array(); $items[] = array('name' => 'status', 'label' => ''); $items[] = array('name' => 'id', 'label' => ''); $items[] = array('name' => 'id', 'label' => $lang->idAB, 'control' => 'index', 'width' => '40px'); $items[] = array('name' => 'title', 'label' => $lang->bug->title, 'control' => 'static', 'width' => '120px'); $items[] = array('name' => 'assignedTo', 'label' => $lang->bug->assignedTo, 'control' => 'picker', 'width' => '160px', 'items' => $users); $items[] = array('name' => 'openedBuild', 'label' => $lang->bug->openedBuild, 'control' => 'picker', 'multiple' => true, 'width' => '200px', 'items' => $builds); $items[] = array('name' => 'comment', 'label' => $lang->bug->legendComment, 'control' => 'input', 'width' => '1/3'); foreach($bugs as $bug) { if($bug->status != 'active') $bug->assignedTo = $bug->resolvedBy; } formBatchPanel ( set::title($lang->bug->common . $lang->hyphen . $lang->bug->batchActivate), set::mode('edit'), set::items($items), set::data(array_values($bugs)) ); render();