Bug 25131: (QA follow-up) Move test for needs_install outside the plugin
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 15 Apr 2020 14:48:23 +0000 (11:48 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 16 Apr 2020 18:21:19 +0000 (19:21 +0100)
commit75f3cb5680693cfca0a0d9e57f52bfcc57ed7481
treeb51f7bf68c2acc92fd106003edb827a1860fc20e
parentbe618ab400bc15e4c3804ffdbdbc3e8c3e659ba3
Bug 25131: (QA follow-up) Move test for needs_install outside the plugin

This follow-up patch moves the check outside the register routine. The
Mojo plugin won't be loaded unless there's no need to install.

As the original tests rely on V1.pm to be able to load the plugin, they
are still valid, and they should still pass as there's no behaviour
change.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/Plugin/PluginRoutes.pm
Koha/REST/V1.pm