prepare_query need to be called AFTER update_attributes to ensure invariants

pull/753/head
Philipp Tessenow 11 years ago
parent 1970491ef8
commit c5480569c4
  1. 2
      app/controllers/queries_controller.rb

@ -70,8 +70,8 @@ private
def prepare_for_editing
if request.post?
@query.filters = []
prepare_query @query
@query.update_attributes permitted_params.query
prepare_query @query
end
end

Loading…
Cancel
Save