To reproduce: - Run: $ prove t/db_dependent/Serials.t => FAIL: item-level_itypes set... warning
Created attachment 62391 [details] [review] Bug 18460: Fix undefined itemtype warning in Serials.t This patch makes the test create an itemtype, and use it for the created item so there's no warning. To test: - Run: $ prove t/db_dependent/Serials.t => FAIL: item-level_itypes set but no itemtype set... warning raised - Apply the patch - Run: $ prove t/db_dependent/Serials.t => SUCCESS: Tests pass and no warning is raised - Sign off :-D https://bugs.koha-community.org/show_bug.cgi?id=18361
Ok, reproduced on minimal install: prove -v t/db_dependent/Serials.t (...) item-level_itypes set but no itemtype set for item (5) at /home/marc/koha/Koha/Schema/Result/Item.pm line 698. (...) Does no longer appear with patch applied.
Created attachment 62406 [details] [review] Bug 18460: Fix undefined itemtype warning in Serials.t This patch makes the test create an itemtype, and use it for the created item so there's no warning. To test: - Run: $ prove t/db_dependent/Serials.t => FAIL: item-level_itypes set but no itemtype set... warning raised - Apply the patch - Run: $ prove t/db_dependent/Serials.t => SUCCESS: Tests pass and no warning is raised - Sign off :-D https://bugs.koha-community.org/show_bug.cgi?id=18361 Signed-off-by: Marc Véron <veron@veron.ch>
Created attachment 62411 [details] [review] Bug 18460: Fix undefined itemtype warning in Serials.t This patch makes the test create an itemtype, and use it for the created item so there's no warning. To test: - Run: $ prove t/db_dependent/Serials.t => FAIL: item-level_itypes set but no itemtype set... warning raised - Apply the patch - Run: $ prove t/db_dependent/Serials.t => SUCCESS: Tests pass and no warning is raised - Sign off :-D Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 17.05, thanks Tomas!
This patch has been pushed to 16.11.x and will be in 16.11.07.
Pushed to 16.05.x, for 16.05.12 release
Pushed to 3.22.x for 3.22.21