Bug 21322: process_message_queue.pl --type should take an argument
authorMagnus Enger <magnus@libriotech.no>
Thu, 6 Sep 2018 13:23:17 +0000 (13:23 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 11 Oct 2018 13:49:57 +0000 (15:49 +0200)
commit25e62577902fe7b426d545d5f17e74452980f7cf
treeaa474afc435be45945c2da859dadacfee009d3db
parent94446917946de314302345f0b28503fcbea38c70
Bug 21322: process_message_queue.pl --type should take an argument

The help for this script says:
-t --type: If supplied, only processes this type of message ( email, sms )

Currently, the type argument is set up wrong, so it does not look
for an argument. This patch fixes that.

To test, run this command (should work in kohadevbox) or something
similar:

$ sudo koha-shell -c "perl \
/home/vagrant/kohaclone/misc/cronjobs/process_message_queue.pl -v \
--type=sms" kohadev

This should give the following error: "Option type does not take an argument".
Apply the patch and run the same command again. This should not give an
error.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit d74a05d4fe81a599c030024f7944d2bdcca43d12)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit a3f097958cae68e4f3f16c8eb5aa5411d2488bc2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/process_message_queue.pl