|
|
@ -99,7 +99,10 @@ private |
|
|
|
def api_case_log_params |
|
|
|
def api_case_log_params |
|
|
|
return {} unless params[:case_log] |
|
|
|
return {} unless params[:case_log] |
|
|
|
|
|
|
|
|
|
|
|
params.require(:case_log).permit(CaseLog.editable_fields) |
|
|
|
permitted = params.require(:case_log).permit(CaseLog.editable_fields) |
|
|
|
|
|
|
|
permitted["owning_organisation"] = Organisation.find_by(permitted["owning_organisation"]) |
|
|
|
|
|
|
|
permitted["managing_organisation"] = Organisation.find_by(permitted["managing_organisation"]) |
|
|
|
|
|
|
|
permitted |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def find_resource |
|
|
|
def find_resource |
|
|
|