lib/interaction/query_update.rb in aleph_analytics-0.2.0 vs lib/interaction/query_update.rb in aleph_analytics-0.3.0
- old
+ new
@@ -12,10 +12,12 @@
def execute
@query.title = @title
@query.tag_list = @tags
@query.set_roles(@roles)
+ @query.scheduled_flag = @scheduled_flag
+ @query.email = @email
@current_query_version.comment = @comment
@current_query_version.save!
next_query_version = nil
@@ -49,9 +51,10 @@
# otherwise, we want to set it back to the version that was passed in
# pretty hacky, will need to figure out a better solution
# -------------------------------------------------------------------------------------------------
@query.version = next_query_version || @current_query_version
+ @result.copy_latest_result if @result.present?
@query
end
def create_new_query_version?
return false unless @params[:version]