Skip to content

Commit

Permalink
Bugfix: Initialize PagePublicationFields on Pages Table
Browse files Browse the repository at this point in the history
On the Sitemap and on the Edit page, `Alchemy::PagePublicationFields` is
initialized. On the table, it isn't, leading to behavior where an admin cannot
un-publish or publish a page from the pages table.
  • Loading branch information
mamhoff committed Jul 31, 2023
1 parent b4d5af9 commit 3f05dca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/views/alchemy/admin/pages/_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@
<%= render partial: "table_row", collection: @pages, as: "page" %>
</tbody>
</table>

<script type="text/javascript">
$(function() {
Alchemy.PagePublicationFields();
});
</script>

0 comments on commit 3f05dca

Please sign in to comment.