MyBB Community Forums

Full Version: Search ascending/descending is wrong, only does descending
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

While testing for Omar, I found a bug. When selecting 'ascending' in 'Advanced Search,' the results are only descending. The code in question is:
<input type="radio" class="radio" name="order" id="order_asc" value="asc" /> <label for="order_asc">{$lang->order_asc}</label><br />
<input type="radio" class="radio" name="order" id="order_desc" value="desc" checked="checked" /> <label for="order_desc">{$lang->order_desc}</label>

The fix is (credit to Omar G.):
<input type="radio" class="radio" name="order" id="order_asc" value="ascending" /> <label for="order_asc">{$lang->order_asc}</label><br />
<input type="radio" class="radio" name="order" id="order_desc" value="descending" checked="checked" /> <label for="order_desc">{$lang->order_desc}</label>
Thank you. Forgot about that.
Hi,

You did follow the expected report process, after which we run a custom moderation tool that copies the report over to Github.

However, the tool is not working properly so I had to post the Github link manually above, so people are aware about it.

Thank you for your report !

Regards.