Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
6a6996d4
Commit
6a6996d4
authored
2 years ago
by
lmtd21
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#34
: FIX learning object link
parent
6954794d
No related branches found
No related tags found
1 merge request
!33
Issue #34: FIX learning object link
Pipeline
#32234
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/v1/learning_objects_controller.rb
+0
-6
0 additions, 6 deletions
app/controllers/v1/learning_objects_controller.rb
with
0 additions
and
6 deletions
app/controllers/v1/learning_objects_controller.rb
+
0
−
6
View file @
6a6996d4
...
...
@@ -178,9 +178,6 @@ class V1::LearningObjectsController < ApplicationController
learning_object
.
add_subjects
(
ids:
params
[
:subjects
])
unless
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
end
def
update_learning_object_associations
(
learning_object
,
change_object_type_id
=
false
)
...
...
@@ -188,9 +185,6 @@ class V1::LearningObjectsController < ApplicationController
learning_object
.
update_subjects
(
ids:
extra_params
[
:subjects
].
map
{
|
s
|
s
.
to_i
})
unless
extra_params
[
:subjects
].
nil?
learning_object
.
update_educational_stages
(
ids:
extra_params
[
:educational_stages
].
map
{
|
es
|
es
.
to_i
})
unless
extra_params
[
:educational_stages
].
nil?
if
change_object_type_id
learning_object
.
link
=
nil
end
end
def
authorize!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment