On Sun, Jun 1, 2014 at 1:27 PM, Paolo Bolzoni <paolo.bolzoni.br...@gmail.com > wrote:
> It is possible to reoder the ticket report format? > I made a new one that hides the Fixed issuesa > and I would like to show it first. > i think what you want is: Admin ==> Tickets ==> Report List Page Hm. But that requires building the list by hand or getting at the db-level list from th1. Looking over the code... there's a ticket-reportlist config property... that's the contents of that page. The $report_items variable is set up from this query: SELECT rn, title, owner FROM reportfmt ORDER BY title (see src/report.c:view_list()) The next step would be to replace the $report_items reference with code which runs/processes that query. i don't recall offhand whether or not TH1 exposes an API for doing so. Ah, here: /* ** TH1 command: query SQL CODE ** ** Run the SQL query given by the SQL argument. For each row in the result ** set, run CODE. ** ** In SQL, parameters such as $var are filled in using the value of variable ** "var". Result values are stored in variables with the column name prior ** to each invocation of CODE. */ So, yes, it seems it is doable with a bit of hacking on the above-mentioned config page. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users