Commit 5dd83db8 authored by dgt's avatar dgt

Merge branch '274-undefined-method-owner_id-for-nil-nilclass-in-pages-controller' into 'master'

Resolve "undefined method `owner_id' for nil:NilClass in Pages Controller"

Closes #274

See merge request !256
parents 865ca6d1 7a073b50
......@@ -9,7 +9,7 @@ class Me::PagesController < Me::BaseController
if request.xhr?
# note: pagination_params is used just for defaults,
# normal pagination is done through @path.
@pages = Page.paginate_by_path(@path, options_for_me(method: :sphinx), pagination_params)
@pages = Page.paginate_by_path(@path, options_for_me(method: :sphinx), pagination_params).compact
end
render template: 'common/pages/search/index', locals: { columns: :updated_with_owner }
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment