/** * Remove store field */ public function removefieldAction() { $this->_checkLoaded(); $this->_checkObject(); $id = Request::post('id', 'string', false); if (!$id) { Response::jsonError($this->_lang->FIELD_EXISTS); } if ($this->_object->fieldExists($id)) { $this->_object->removeField($id); } $this->_storeProject(); Response::jsonSuccess(); }