fix error

This commit is contained in:
chiu 2020-05-13 17:08:40 +08:00
parent fa2531132d
commit b176670943
2 changed files with 5 additions and 1 deletions

View File

@ -190,7 +190,11 @@ class AsksController < ActionController::Base
@group_mail = email_er.email_address
@mail_sentdate = DateTime.now
site = Site.first
mail_from = site['site_settings']['service_email']
email_er.email.update_attributes(
:mail_from=> mail_from,
:create_user=>(current_user rescue nil),
:mail_sentdate=>@mail_sentdate,
:module_app=>@module_app,

View File

@ -28,7 +28,7 @@
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(b) %>
<li><a href="/admin/asks/<%=b.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="/<%= I18n.locale %>/admin/asks/<%=b.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="#" class="delete text-error" rel="/admin/asks/<%=b.id.to_s%>"><%= t(:delete_) %></a></li>
<% end %>
</ul>