Fix post and reply IDs in delete pages
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 Jun 2016 19:17:57 +0000 (21:17 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 Jun 2016 19:17:57 +0000 (21:17 +0200)
src/main/resources/templates/deletePost.html
src/main/resources/templates/deleteReply.html

index f6c57c8..1cba3f9 100644 (file)
@@ -7,7 +7,7 @@
        <form method="post">
                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                <input type="hidden" name="returnPage" value="<% returnPage|html>" />
-               <input type="hidden" name="post" value="<% post.id|html>" />
+               <input type="hidden" name="post" value="<% post|html>" />
                <button type="submit" name="confirmDelete" value="1"><%= Page.DeletePost.Button.Yes|l10n|html></button>
                <button type="submit" name="abortDelete" value="1"><%= Page.DeletePost.Button.No|l10n|html></button>
        </form>
index 1c0cf4e..23daf1c 100644 (file)
@@ -7,7 +7,7 @@
        <form method="post">
                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                <input type="hidden" name="returnPage" value="<% returnPage|html>" />
-               <input type="hidden" name="reply" value="<% reply.id|html>" />
+               <input type="hidden" name="reply" value="<% reply|html>" />
                <button type="submit" name="confirmDelete" value="1"><%= Page.DeleteReply.Button.Yes|l10n|html></button>
                <button type="submit" name="abortDelete" value="1"><%= Page.DeleteReply.Button.No|l10n|html></button>
        </form>