/** * Displays form for creating a new or editing existing one product group specification field * * @return ActionResponse */ public function item() { $specFieldList = parent::item()->getValue(); $specFieldList['categoryID'] = $specFieldList['Category']['ID']; unset($specFieldList['Category']); unset($specFieldList['SpecFieldGroup']['Category']); return new JSONResponse($specFieldList); }
/** * Displays form for creating a new or editing existing one product group specification field * * @return ActionResponse */ public function item() { $specFieldList = parent::item()->getValue(); $specFieldList['categoryID'] = $specFieldList['classID']; return new JSONResponse($specFieldList); }