Bug 22709: (RM follow-up) AddBiblio returns a list not a scalar
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Jul 2019 11:37:42 +0000 (12:37 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Jul 2019 11:43:17 +0000 (12:43 +0100)
commit08a86c233576323f3d347a43690124c6fc8a0073
treece51e765bf60739beb64fb1c35197ce24c7b4a3f
parentd7fec3af88d0ba6c2ae3246df47ee5ce29ebf78c
Bug 22709: (RM follow-up) AddBiblio returns a list not a scalar

AddBiblio was being called in scalar context in
Biblio_and_Items_plugin_hooks.t and this was leading to difficult to
reproduce test failures. If the tests was run after any other test that
also called AddBiblio then it would fail, but if it was run as the first
test it would pass. This is due to a fluke in processing which meant the
the final return value of the list (itemnumber) happened to match a
biblionumber.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t