q2a / question2answer

Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
http://www.question2answer.org/
GNU General Public License v3.0
1.63k stars 628 forks source link

Error Popup: When two admins approve a post in moderation by a difference of few seconds #392

Open gurjyot opened 8 years ago

gurjyot commented 8 years ago

This happened today only, I opened the moderation page and saw a post there so I click the approve button. Then an error popup occurred. Then I saw the homepage of my website and the post was already approved by another admin. So why a sever error message popup during this scenario? Why not a message like "There is no post in moderation to be approved?" or "The post has already been approved or hidden."

The error message which pops up is this.

error

svivian commented 8 years ago

Yes that's a fair point. It's not a simple fix though - the qa_admin_single_click only returns true or false, rather than a particular error message.