Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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);
 }