question reedit bug
I found some unusual when re-editting a question. After clicking the re-edit button, a new page with a <select>
will show, and in this <select>
list, it contains all the revisions, assuming I have only one history version,the <select>
list will have only one version. but I want edit the second version. and when I edit the question, this question have 2 versions and when I edit it for the third time, the second history revision's title and tags shows the first revision's title and tags. In the database table askbot_postrevison
, the question's title and tags is really the last one's tags and title. If it is a bug? and how to fix it?
after debug the source code. I found something wrong.
Comments
in the post.py source file, about 2085 lines, a function named `apply_edit(self, *args, **kwargs)` is the main code of question revision. it annotation says "the question apply edit function is backwards:" and the ` __apply_edit()` use the thread title and tagnames but the new text.
Can you edit your question and - fix the formatting (don't write in boldface) - uncheck the "community-wiki" checkbox Thanks!