Bug 16219: Add 'params' parameter to runreport.pl
authorNick Clemens <nick@bywatersolutions.com>
Wed, 5 Sep 2018 11:15:01 +0000 (11:15 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 2 Sep 2019 14:02:58 +0000 (16:02 +0200)
commit84bd45be7f323cf6bc05a437dbb8cbad27be02b9
tree3d8d6c1a75437495ddd896800b7fdd8bd97a00f0
parent98635c1a61514cd50052f1668ace75406876d0f4
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>
(cherry picked from commit 72197a9574d8b27651a390b9f177a537e1bf994c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/runreport.pl