Merge pull request #4605 from consul/preview_notifications_order
Fix inconsistent order in system email preview
This commit is contained in:
@@ -43,6 +43,7 @@ class Admin::SystemEmailsController < Admin::BaseController
|
||||
case @system_email
|
||||
when "proposal_notification_digest"
|
||||
@previews = ProposalNotification.where(id: unsent_proposal_notifications_ids)
|
||||
.order(:id)
|
||||
.page(params[:page])
|
||||
end
|
||||
end
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<strong><%= t("admin.shared.content") %></strong>
|
||||
<p id="phase-description-help-text">
|
||||
<p>
|
||||
<%= preview.body %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user