/**
  * Delete selected fields
  * @return 
  */
 protected function deleteFields()
 {
     foreach ((array) $_POST['field_ids'] as $field_id) {
         $tmp_field = new ilCourseDefinedFieldDefinition($this->obj_id, $field_id);
         $tmp_field->delete();
     }
     ilMemberAgreement::_deleteByObjId($this->obj_id);
     ilUtil::sendSuccess($this->lng->txt('ps_cdf_deleted'));
     $this->listFields();
     return true;
 }