fix for empty content
This commit is contained in:
parent
1420f75391
commit
90f2686f72
|
@ -52,8 +52,8 @@ class UpgradeController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
text = {"en" => "", "zh_tw" => ""}
|
text = {"en" => "", "zh_tw" => ""}
|
||||||
text["en"] = smart_convertor(b.text_translations["en"])
|
text["en"] = smart_convertor(b.text_translations["en"]) if !b.text_translations["en"].nil?
|
||||||
text["zh_tw"] = smart_convertor(b.text_translations["zh_tw"])
|
text["zh_tw"] = smart_convertor(b.text_translations["zh_tw"]) if !b.text_translations["en"].nil?
|
||||||
|
|
||||||
{
|
{
|
||||||
"id" => b.id.to_s,
|
"id" => b.id.to_s,
|
||||||
|
|
Loading…
Reference in New Issue