Fixed bugs for nccu
This commit is contained in:
1 parent
11a371cbb9
commit
d6b92fc604
3 files changed
+5
-5
No files matched your search
@@ -74,7 +74,7 @@ class OrbitBackendController< ApplicationController
|
||||
when 'categories'
|
||||
a = Array.new
|
||||
objects.each do |object|
|
||||
a << object if value.include?(object.send("#{object.class.to_s.underscore}_category").id.to_s)
|
||||
a << object if (value.include?(object.send("#{object.class.to_s.underscore}_category").id.to_s) rescue nil)
|
||||
end
|
||||
objects = a.uniq
|
||||
when 'tags'
|
||||
@@ -99,9 +99,9 @@ class OrbitBackendController< ApplicationController
|
||||
if s
|
||||
case s.class.to_s
|
||||
when "String"
|
||||
s.downcase
|
||||
s.downcase rescue ''
|
||||
when "I18nVariable"
|
||||
s[I18n.locale].downcase
|
||||
s[I18n.locale].downcase rescue ''
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
per_page: number of items to fetch per page
|
||||
remote: data-remote
|
||||
-%>
|
||||
<li class="page gap"><%= raw(t 'views.pagination.truncate') %></li>
|
||||
<!-- <li class="page gap"><%= raw(t 'views.pagination.truncate') %></li> -->
|
||||
Reference in new issue
Block a user