public function index() { $response = parent::index(); $fields = $response->get('specFieldsWithGroups'); foreach ($fields as &$field) { if (isset($field['EavFieldGroup'])) { $field['SpecFieldGroup'] = $field['EavFieldGroup']; $field['SpecFieldGroup']['Category']['ID'] = $response->get('categoryID'); } } $response->set('specFieldsWithGroups', $fields); return $response; }
public function index() { return parent::index(); }