Koha/tools
Katrin Fischer 4a2cc4e903
Bug 14369: Only show 'Create labels' link on staged records import when status is imported
The label creator won't be able to add a batch for items, if they are
not imported into the database (missing itemnumber). This patch hides
the link, when the status is not imported, to avoid the error situation.

To test:
- Export a record with items from your Koha installation
- Delete items and record from Koha
- Stage the record with the items - the "Create labels" link should be showing
- Try to create the labels - note error
- Apply patch
- Retry - the link should no longer show
- Import the records - the link should show now
- Create labels again - a new batch should have been created
- Verify the link on the batch # leads to the batch in the labels module

Bonus: Moves the message from the .pl file to the template to make
it translatable.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-21 12:28:56 +01:00
..
csv-profiles
quotes
access_files.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
ajax-inventory.pl
automatic_item_modification_by_age.pl
background-job-progress.pl
batch_delete_records.pl Bug 23463: Fix safe_return return value in deletion tools 2020-03-23 09:26:33 +00:00
batch_extend_due_dates.pl Bug 25020: Preserve time part when batch extending due dates 2020-04-03 14:29:00 +01:00
batch_record_modification.pl Bug 18127: Add batch modified records to an existing list 2020-03-10 15:20:18 +00:00
batch_records_ajax.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
batchMod.pl Bug 23463: Fix safe_return return value in deletion tools 2020-03-23 09:26:33 +00:00
cleanborrowers.pl
copy-holidays.pl Bug 24878: Add auth check for copy-holidays 2020-03-26 11:35:11 +00:00
csv-profiles.pl
exceptionHolidays.pl Bug 24878: Add authentication checks to the calendar tool 2020-03-26 11:35:00 +00:00
export.pl Bug 14647: (follow-up) Changes to script 2020-02-20 08:59:31 +00:00
holidays.pl
import_borrowers.pl Bug 23473: (follow-up) check if overwrite_passwords is set 2020-03-27 12:23:00 +00:00
inventory.pl Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
koha-news.pl
letter.pl Bug 4461: (follow-up) Creating sample notice and other fixes 2020-04-06 11:16:38 +01:00
manage-marc-import.pl Bug 14369: Only show 'Create labels' link on staged records import when status is imported 2020-04-21 12:28:56 +01:00
marc_modification_templates.pl
modborrowers.pl Bug 20443: Use search_with_library_limits for attribute types 2020-03-23 13:49:22 +00:00
newHolidays.pl Bug 24878: Add authentication checks to the calendar tool 2020-03-26 11:35:00 +00:00
overduerules.pl Bug 21746: Remove NO_LIBRARY_SET 2020-03-02 10:20:42 +00:00
picture-upload.pl Bug 9422: Don't allow access to 'Upload patron images' when patronimages syspref is off 2020-04-03 14:26:32 +01:00
quotes-upload.pl
quotes.pl
scheduler.pl
showdiffmarc.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
stage-marc-import.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
stockrotation.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
tools-home.pl
upload-cover-image.pl
upload-file.pl
upload.pl
viewlog.pl