Add treatments to search-by and order-by fields
Posted by sarneil on 26 Jan 2009 in Activity log
ML asked to have treatments added to list of fields that one can use to search the database. Added that to the GUI in searchformbasic.inc and to the where clause code in search.php. Latter pretty straightforward after I'd made the necessary changes to get the two treatments to display properly in a recent bug fix.
Decided to add treatments to the list of fields that one can sort the results by. Added value to order-by table in database and modified php switch statements for order_by_1_text and order_by_2_text in search.php.
In testing, it looks like the order by 2 isn't doing what I expect it to, so I'll have to look into that further. That argument seems to be having no effect at all.