예제 #1
0
 public function update()
 {
     if (ActiveRecordModel::objectExists($this->getFieldClass(), $this->request->get('ID'))) {
         $specField = $this->getFieldInstanceByID($this->request->get('ID'));
     } else {
         return new JSONResponse(array('errors' => array('ID' => $this->translate('_error_record_id_is_not_valid')), 'ID' => (int) $this->request->get('ID')));
     }
     return $this->save($specField);
 }