Bug 16219: Add 'params' parameter to runreport.pl
authorNick Clemens <nick@bywatersolutions.com>
Wed, 5 Sep 2018 11:15:01 +0000 (11:15 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 13 Aug 2019 10:54:54 +0000 (11:54 +0100)
commit72197a9574d8b27651a390b9f177a537e1bf994c
treed87cd07b1ff1ca3e65e16eaab65a21215a245f6d
parent06e28c3ac5b708ce01ea1265fa993c1f85e98645
Bug 16219: Add 'params' parameter to runreport.pl

To test:
 1 - Apply patch
 2 - Write a report that takes no variables
 3 - Run this using runreport.pl
    perl misc/cronjobs/runreport.pl 1
 4 - Confirm results as expected
 5 - Write a report that takes one or more variables
 6 - Run using runreport.pl, but pass no params
 7 - You should get a SQL error
 8 - Now run passing the correct number of params
    perl misc/cronjobs/runreport.pl --param first --param=2nd 2
 9 - Verify results as expected
10 - call runreport with no parameters
    perl misc/cronjobs/runreport.pl
11 - Verify documentation is correct and helpful

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
misc/cronjobs/runreport.pl