Commit 11a6a7acfd8a28f5d7dc92035593467149407951
1 parent
41eb4171
Exists in
master
and in
29 other branches
Fix bug at work assignment plugin
Fix problem when calling content types plugin hotspot outside of a profile. This is needed by community track plugin to display available content types for selection at step edition.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/work_assignment/lib/work_assignment_plugin.rb
... | ... | @@ -18,7 +18,7 @@ class WorkAssignmentPlugin < Noosfero::Plugin |
18 | 18 | end |
19 | 19 | |
20 | 20 | def content_types |
21 | - [WorkAssignmentPlugin::WorkAssignment] if context.profile.organization? | |
21 | + [WorkAssignmentPlugin::WorkAssignment] if context.respond_to?(:profile) && context.profile.organization? | |
22 | 22 | end |
23 | 23 | |
24 | 24 | def stylesheet? | ... | ... |