コード例 #1
0
ファイル: BugInfoView.php プロジェクト: mjrao/BugFree
 public static function getSearchableField($productId)
 {
     $searchAbleArr = self::getBasicSearchFieldConfig($productId);
     if (!empty($productId)) {
         $searchAbleArr['solution'] = array('label' => BugInfo::model()->getAttributeLabel('solution'), 'type' => Info::$InputType['option'], 'isBasic' => true, 'value' => InfoService::getBugSolutionOptions($productId));
         $customSearchAbleFieldArr = ProductService::getSearchableCostomField('bug', $productId);
         $searchAbleArr = array_merge($searchAbleArr, $customSearchAbleFieldArr);
     }
     return $searchAbleArr;
 }
コード例 #2
0
ファイル: _bug_form.php プロジェクト: mjrao/BugFree
echo $form->label($model, 'resolved_at');
?>
                    <?php 
echo CHtml::encode(CommonService::getDateStr($model->resolved_at));
?>
                </div>
                <?php 
echo empty($customfield['bug_resolve']) ? '' : $customfield['bug_resolve'];
?>
                <div class="row">
                    <?php 
echo $form->label($model, 'solution');
?>
                    <?php 
if (BugInfo::STATUS_ACTIVE != $model->bug_status) {
    echo $form->dropDownList($model, 'solution', InfoService::getBugSolutionOptions($model->product_id), array('onchange' => 'if("' . BugInfo::DUPLICATE_SOLUTION . '" == $(this).val()){$("#BugInfoView_duplicate_id").show();$("#BugInfoView_duplicate_id").focus();}else{$("#BugInfoView_duplicate_id").hide();}', 'class' => 'info_input required', 'style' => 'width:190px;'));
} else {
    echo CHtml::encode($model->solution);
}
?>
                </div>
                <div class="row">
                    <?php 
echo $form->label($model, 'duplicate_id');
?>
                    <?php 
if (BugInfo::STATUS_ACTIVE != $model->bug_status) {
    $displayStyle = 'display:none;';
    if (BugInfo::DUPLICATE_SOLUTION == $model->solution) {
        $displayStyle = '';
    }