Skip to content

Legal 0.1.9: The Publish button publishes legal pages again

Legal 0.1.9 fixes publishing of generated legal pages. The Publish button on the Legal settings page flashed “Page published successfully”, but the page stayed a draft and its public address kept returning 404.

The module asked Publishing to set the status to published through an ordinary post update, which Publishing refuses on purpose: status and the active version must change together. The update still succeeded, so nobody saw the failure. publish_page/2 now publishes the post’s current version the way Publishing’s own admin does, and it takes a :version option to publish a specific one.

The admin settings page also read the signed-in user from the wrong place, so every generate and publish action was logged without an actor. Publish actions now record who did them.

Upgrading

Pages you published before this release were never published. Publish them again from the Legal settings page.

 

 


Legal 0.1.9. Install or update: {:phoenix_kit_legal, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.