private static function filterCustomInfoInReactive($customInfo, $productId) { $filterResult = array(); $fieldConfigArr = FieldConfigService::getNewBugEditableField($productId); foreach ($customInfo as $key => $value) { if (in_array($key, $fieldConfigArr) || in_array($key, array('id', 'bug_id'))) { $filterResult[$key] = $value; } } return $filterResult; }