Skip to content
Snippets Groups Projects
Commit 4a652755 authored by Clarissa's avatar Clarissa
Browse files

Missed parameter create fixed

parent 9ee22ba6
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ class V1::LearningObjectsController < ApplicationController
publisher = LearningObjectPublisher.new(DspaceService.create_client)
if publisher.create_draft(learning_object, current_user)
learning_object_associations(learning_object)
learning_object_associations(learning_object, false)
render json: learning_object, status: :created
else
render json: learning_object.errors, status: :unprocessable_entity
......@@ -119,7 +119,6 @@ class V1::LearningObjectsController < ApplicationController
end
learning_object.add_subjects(ids: extra_params[:subjects]) unless extra_params[:subjects].nil?
learning_object.add_educational_stages(ids: extra_params[:educational_stages]) unless extra_params[:educational_stages].nil?
if change_object_type_id
learning_object.link = nil
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment