The controller invokes the create links method from the model when working on an...
[arvados.git] / services / api / app / controllers / application_controller.rb
index 3101781c230916ff63b3e50118443d211833aed8..fa189aa80d2e3dcb4f1ee9025c86c4c27151fc01 100644 (file)
@@ -126,7 +126,7 @@ class ApplicationController < ActionController::Base
   def load_filters_param
     if params[:filters].is_a? Array
       @filters = params[:filters]
-    elsif params[:filters].is_a? String
+    elsif params[:filters].is_a? String and !params[:filters].empty?
       begin
         @filters = Oj.load params[:filters]
         raise unless @filters.is_a? Array