Commit 7e2cd9cfad13231f35f5d1a5ac83ec274ca8ccd8
1 parent
ea9869bc
Exists in
master
and in
29 other branches
Fix display content plugin to use with container block
Display content plugin should reference owner using block owner method.
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
plugins/display_content/lib/display_content_block.rb
@@ -68,12 +68,12 @@ class DisplayContentBlock < Block | @@ -68,12 +68,12 @@ class DisplayContentBlock < Block | ||
68 | protected | 68 | protected |
69 | 69 | ||
70 | def holder | 70 | def holder |
71 | - return nil if self.box.nil? || self.box.owner.nil? | ||
72 | - if self.box.owner.kind_of?(Environment) | ||
73 | - return nil if self.box.owner.portal_community.nil? | ||
74 | - self.box.owner.portal_community | 71 | + return nil if self.box.nil? || self.owner.nil? |
72 | + if self.owner.kind_of?(Environment) | ||
73 | + return nil if self.owner.portal_community.nil? | ||
74 | + self.owner.portal_community | ||
75 | else | 75 | else |
76 | - self.box.owner | 76 | + self.owner |
77 | end | 77 | end |
78 | end | 78 | end |
79 | 79 |