Read NFC
This commit is contained in:
@@ -6,9 +6,9 @@ class Transactions::SurveysController < ApplicationController
|
||||
to = params[:to]
|
||||
|
||||
if filter.nil? && from.nil? && to.nil?
|
||||
@surveys = Survey.where("shop_code='#{@shop.shop_code}'")
|
||||
@surveys = Survey.all
|
||||
else
|
||||
@surveys = Survey.search(filter,from,to).where("shop_code='#{@shop.shop_code}'")
|
||||
@surveys = Survey.search(filter,from,to)
|
||||
end
|
||||
|
||||
@filter = filter
|
||||
|
||||
Reference in New Issue
Block a user