index period fixed

This commit is contained in:
Harry Bomrah 2016-03-30 16:40:25 +08:00
parent cd20c50152
commit 3f535c9616
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class PersonalProjectsController < ApplicationController
t << {"value" => (project.send(fs).title rescue "")}
when "project_title"
t << {"value" => "<a href='#{OrbitHelper.url_to_show(project.to_param)}'>" + (project.send(fs) rescue "") + "</a>"}
when "period"
t << {"value" => (project.send("duration") rescue "")}
else
t << {"value" => (project.send(fs) rescue "")}
end