public static function getSearchableField($productId) { $searchAbleArr = self::getBasicSearchFieldConfig($productId); if (!empty($productId)) { $customSearchAbleFieldArr = ProductService::getSearchableCostomField('case', $productId); $searchAbleArr = array_merge($searchAbleArr, $customSearchAbleFieldArr); } return $searchAbleArr; }
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; }