Bug 20473: Don't display 'Item information' tab when adding to basket from a file...
authorNick Clemens <nick@bywatersolutions.com>
Fri, 16 Dec 2022 13:12:19 +0000 (13:12 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Jan 2023 14:00:16 +0000 (11:00 -0300)
commitdcd6f549d94717367ff9b2bae22f078810f35785
treea514c89a1c8fbf271fcff77a4aa4f1919e68381c
parent74f2b832558d575b4d4825518a848fe2ef92f278
Bug 20473: Don't display 'Item information' tab when adding to basket from a file and not creating items

This patch adds a conditional, and moves another up one level to remove the tab
when it will have no content/effect

To test:
1. Stage a MARC file from Tools > Stage MARC records for import
2. Go to Acquisitions and create a basket for a vendor
3. Add to basket from staged file
4. Note that the "item information" tab is present, if you click on it, not that it is not useful
5. Cancel adding to basket
6. Apply patch
7. Add to basket from the staged file again
8. Confirm there is no item information tab
9. Confirm orders are added on 'Save'

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt