From 1eecb40a2a0a178395a4331ab03b5952c89d64fd Mon Sep 17 00:00:00 2001 From: Fabio Teixeira Date: Thu, 11 Dec 2014 17:46:27 -0200 Subject: [PATCH] Fix get_field_data --- controllers/mpog_software_plugin_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/mpog_software_plugin_controller.rb b/controllers/mpog_software_plugin_controller.rb index 2113bab..ad48f0b 100644 --- a/controllers/mpog_software_plugin_controller.rb +++ b/controllers/mpog_software_plugin_controller.rb @@ -121,7 +121,7 @@ class MpogSoftwarePluginController < ApplicationController end data = model.where("name ILIKE ?", "%#{params[:query]}%").select("id, name") - data.collect { |db| + data = data.collect { |db| {:id=>db.id, :label=>db.name} } -- libgit2 0.21.2