Merge pull request #4605 from consul/preview_notifications_order

Fix inconsistent order in system email preview
This commit is contained in:
Javi Martín
2021-08-12 13:28:43 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ class Admin::SystemEmailsController < Admin::BaseController
case @system_email case @system_email
when "proposal_notification_digest" when "proposal_notification_digest"
@previews = ProposalNotification.where(id: unsent_proposal_notifications_ids) @previews = ProposalNotification.where(id: unsent_proposal_notifications_ids)
.order(:id)
.page(params[:page]) .page(params[:page])
end end
end end

View File

@@ -24,7 +24,7 @@
<div class="row"> <div class="row">
<div class="column"> <div class="column">
<strong><%= t("admin.shared.content") %></strong> <strong><%= t("admin.shared.content") %></strong>
<p id="phase-description-help-text"> <p>
<%= preview.body %> <%= preview.body %>
</p> </p>
</div> </div>