Fix bug.
This commit is contained in:
parent
7d87214fb0
commit
d6b217ec6e
|
@ -69,7 +69,7 @@ class ExperimentsController < ApplicationController
|
||||||
subject_links = subject.subject_links.collect do |f|
|
subject_links = subject.subject_links.collect do |f|
|
||||||
{
|
{
|
||||||
"link_url" => f.url,
|
"link_url" => f.url,
|
||||||
"link_title" => f.title
|
"link_title" => (f.title.blank? ? f.url : f.title)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ class ExperimentsController < ApplicationController
|
||||||
subject_links = subject.subject_links.collect do |f|
|
subject_links = subject.subject_links.collect do |f|
|
||||||
{
|
{
|
||||||
"link_url" => f.url,
|
"link_url" => f.url,
|
||||||
"link_title" => f.title
|
"link_title" => (f.title.blank? ? f.url : f.title)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue