#289 report.csv as default report

open
nobody
None
1
2012-10-16
2012-10-14
Anonymous
No

I want to set up the Excel report as the default value instead of the html report.
How to change ?
Thanks

Discussion

  • If you are running MRBS 1.4.9 then change line 728 in report.php from

    $output_format = get_form_var('output_format', 'int', (($cli_mode) ? OUTPUT_CSV : OUTPUT_HTML));
    

    to

    $output_format = get_form_var('output_format', 'int', OUTPUT_CSV);
    

    In 1.4.8 it's slightly different, but a similar principle.

    Campbell

     

  • Anonymous
    2012-10-16

    did´n´t find it in 1.4.8, or, what i changed in report.php didn´t work ...

     
  • In 1.4.8 you need to change line 775 of report.php from

    $summarize = get_form_var('summarize', 'int', (($cli_mode) ? REPORT + OUTPUT_CSV : REPORT + OUTPUT_HTML));
    

    to

    $summarize = get_form_var('summarize', 'int', REPORT + OUTPUT_CSV);
    

    Campbell

     


Anonymous


Cancel   Add attachments