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)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Tue, 31 Jan 2023 18:07:08 +0000 (18:07 +0000)
commit25cf2142ef2b64cf4f1a621b574c176652ef6e2a
tree158fcb8d422ce3330eedc2220041ed725bd45780
parentcad24ec15d015c3101802fdadbdaceae3888d6d4
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>
(cherry picked from commit dcd6f549d94717367ff9b2bae22f078810f35785)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt