When a post is opened in Edit mode (with Moderator permissions), the input #'topic_type-0' is always 'checked'. If the post has stored another value, that input will ALSO be 'checked'; i.e., two of the inputs will be checked. for example:
is there a problem with the following code from /includes/functions_posting.php?
I verified the test post in the topics table. topic_type was set to 2 as it should have been.
I came across this problem because I'm using document.querySelector() to return the checked topic_type input in a script I'm developing to replicate a phpBB site from forumer.com.