MyBB Community Forums
Search ascending/descending is wrong, only does descending - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+---- Thread: Search ascending/descending is wrong, only does descending (/thread-241104.html)



Search ascending/descending is wrong, only does descending - StarredSkies - 2024-05-28

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>



RE: Search ascending/descending is wrong, only does descending - Omar G. - 2024-05-28

https://github.com/mybb/mybb/issues/4819


RE: Search ascending/descending is wrong, only does descending - StarredSkies - 2024-05-29

Thank you. Forgot about that.


RE: Search ascending/descending is wrong, only does descending - Omar G. - 2024-05-29

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.