Bug 18918: Disable CSV option if no CSV profiles exist
authorAleisha Amohia <aleishaamohia@hotmail.com>
Mon, 10 Jul 2017 02:31:22 +0000 (02:31 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 27 Jul 2017 14:20:54 +0000 (16:20 +0200)
commitae341f962c0f57dd59d9807417cbd571e3f2e5b5
tree845990798fbe39d48ac105c34a3fc28839d0edf0
parent806357a8fc8b124e42ca877a209493d523dbd52e
Bug 18918: Disable CSV option if no CSV profiles exist

To test:
1) Confirm you have no MARC CSV profiles (tools -> csv profiles)
2) Go to Tools -> Export data
3) Select the CSV file format for biblios
4) Notice the CSV profile dropdown shows up but the dropdown is empty
5) Click the Export button, notice Koha breaks
6) Go back and apply the patch, refresh
7) Notice the CSV option is now disabled in the file format menu
8) If you hover over CSV, an appropriate message should show explaining
why it is disabled
9) Create a CSV profile for MARC
10) Go back to Export and you should be able to use CSV now without
problem

Sponsored-by: Catalyst IT
Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7723ffdd130996ec946d5b9149f90cb0cdc447fc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt