Skip to content

Commit

Permalink
Merge branch 'next_stable' of github.com:magiclabs/alchemy_cms into n…
Browse files Browse the repository at this point in the history
…ext_stable
  • Loading branch information
Thomas von Deyen committed Oct 31, 2011
2 parents 62875e7 + a04df11 commit 9c9833a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/elements_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def render_elements(options = {})
element_string = ""
if options[:fallback]
unless all_elements.detect { |e| e.name == options[:fallback][:for] }
if from = Page.find_by_page_layout(options[:fallback][:from])
if from = Page.find_by_page_layout_and_language_id(options[:fallback][:from], session[:language_id])
all_elements += from.elements.find_all_by_name(options[:fallback][:with].blank? ? options[:fallback][:for] : options[:fallback][:with])
end
end
Expand Down

0 comments on commit 9c9833a

Please sign in to comment.