]> git.koha-community.org Git - koha.git/commit
Bug 14204: Fix t/db_dependent/Labels/t_Batch.t failing test from Bug 12991
authorNick Clemens <nick@quecheelibrary.org>
Thu, 14 May 2015 19:56:43 +0000 (19:56 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 15 May 2015 18:34:22 +0000 (15:34 -0300)
commitad3b05996bb5c9c67fc419911fbe460fb3e523b7
treee3650ed0ecdf8875f5470cee7950b893fe75f948
parentfd8ac6f3cde3fa3b1e4ccf566334220c8cf39ce1
Bug 14204: Fix t/db_dependent/Labels/t_Batch.t failing test from Bug 12991

This patch updaes the batch_id variable after items are added to test batch

To test:
1. prove t/db_dependent/Labels/t_Batch.t and see two tests fail
2. apply patch
3. prove again, tests pass!

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
NOTE: The $batch->add_item() call to C4::Creators::Batch::add_item
      triggers the change of the batch_id so this line is necessary!
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/Labels/t_Batch.t