fix bugs for i18n_variable in page and home
This commit is contained in:
1 parent
bda67684bd
commit
c44b86f284
4 files changed
+7
-7
No files matched your search
+1
-1
@@ -6,5 +6,5 @@ class Home < Page
|
||||
def validates_presence_of_parent_id?
|
||||
false
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
+1
-1
@@ -60,7 +60,7 @@ class Item
|
||||
|
||||
# Check if the page is home
|
||||
def is_home?
|
||||
self.name.eql?('home') && self.parent_id.nil?
|
||||
self.name.eql?('home') && (self.parent_id.nil? || self.parent_id.empty?)
|
||||
end
|
||||
|
||||
# Build the url from the array of ancestors
|
||||
|
||||
Reference in new issue
Block a user