---
src/app/controllers/application_controller.rb | 1 +
src/app/controllers/pools_controller.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/app/controllers/application_controller.rb
b/src/app/controllers/application_controller.rb
index 7e9d85e..24806ad 100644
--- a/src/app/controllers/application_controller.rb
+++ b/src/app/controllers/application_controller.rb
@@ -115,6 +115,7 @@ class ApplicationController < ActionController::Base
# Returns an array of ids from params[:id], params[:ids].
def ids_list(other_attrs=[])
+ other_attrs = Array(other_attrs) unless other_attrs.is_a?(Array)
other_attrs.each do |attr_key|
return Array(params[attr_key]) if params.include?(attr_key)
end
diff --git a/src/app/controllers/pools_controller.rb
b/src/app/controllers/pools_controller.rb
index 6eaa6f1..105da6c 100644
--- a/src/app/controllers/pools_controller.rb
+++ b/src/app/controllers/pools_controller.rb
@@ -203,7 +203,7 @@ class PoolsController < ApplicationController
failed = []
permission_failed = []
error_messages = []
- Pool.find(ids_list('pools_selected')).each do |pool|
+ Pool.find(ids_list(['pools_selected'])).each do |pool|
if pool.id == MetadataObject.lookup("self_service_default_pool").id
error_messages <<
t("pools.flash.error.default_pool_not_deleted")
elsif !check_privilege(Privilege::MODIFY, pool)
--
1.7.6.5