From 3f535c961659d1ca84de94f7a1f1a785fe5a04e8 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 30 Mar 2016 16:40:25 +0800 Subject: [PATCH] index period fixed --- app/controllers/personal_projects_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/personal_projects_controller.rb b/app/controllers/personal_projects_controller.rb index c3a1b5b..7d6f409 100644 --- a/app/controllers/personal_projects_controller.rb +++ b/app/controllers/personal_projects_controller.rb @@ -24,6 +24,8 @@ class PersonalProjectsController < ApplicationController t << {"value" => (project.send(fs).title rescue "")} when "project_title" t << {"value" => "" + (project.send(fs) rescue "") + ""} + when "period" + t << {"value" => (project.send("duration") rescue "")} else t << {"value" => (project.send(fs) rescue "")} end