Error popup only shows on flash[:error]
This commit is contained in:
1 parent
39604d30ce
commit
43bc704468
3 files changed
+5
-7
No files matched your search
@@ -78,7 +78,7 @@ class PagesController < ApplicationController
|
||||
protected
|
||||
def save_from_no_lang_for_page
|
||||
if @item.nil? or !@item.enabled_for_lang(I18n.locale.to_s)
|
||||
flash[:notice] = t('sys.module_page_lang_not_support')
|
||||
flash[:error] = t('sys.module_page_lang_not_support')
|
||||
redirect_to '/'
|
||||
return true
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user