Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Fridolin Somers 8d9284668c Bug 20131: Inventory optional filters correct "For loan" addition
In inventory, optional filters are build from authorize values categories used for items.notforloan, items.itemlost, items.withdrawn and items.damaged.

The bug is that description of value 0 is always "For loan".
This seems to be only for "notforloan".

Second bug is that if a description exists for "notforloan" value 0, it is not used.

This patch corrects by adding "For loan" only for "notforloan" authorized values and if there is no 0 value.
It changes the description added by code from "ignore" to a more unlikly user defined "__IGNORE__".

Test plan:
1) Make sure you have authorized values defined on items.notforloan, say "NFL" category, with at least a value and description but no 0 value
2) Make sure you have authorized values defined on items.itemlost, say "LOST" category, with 0 = "Not lost" and 1 = "Lost"
3) Go to inventory /cgi-bin/koha/tools/inventory.pl
4) Without patch you see "For loan" on both items.notforloan and items.itemlost
5) With patch you see "For loan" only in items.notforloan, you see for items.itemlost : "Not lost" and "Lost"
6) Create in authorized values category "NFL" a value 0 with description "Available"
7) Go to inventory /cgi-bin/koha/tools/inventory.pl
8) Without patch you see "For loan" in items.notforloan for value 0
9) With patch you see "Available" in items.notforloan for value 0

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-15 13:36:51 +00:00
..
access_files.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
automatic_item_modification_by_age.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
batch_delete_records.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
batch_record_modification.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
batchMod-del.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
batchMod-edit.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
batchMod.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
cleanborrowers.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
csv-profiles.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
export.tt Bug 19833: (follow-up) Minor corrections 2018-09-19 13:56:18 +00:00
holidays.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
import_borrowers.tt Bug 13272: Adds type="text" to inputs missing it 2018-10-01 11:18:30 +00:00
inventory.tt Bug 20131: Inventory optional filters correct "For loan" addition 2018-10-15 13:36:51 +00:00
koha-news.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
letter.tt Bug 19500: Add missing span for 'other' 2018-08-21 12:29:55 +00:00
manage-marc-import.tt Bug 19833: (follow-up) Minor corrections 2018-09-19 13:56:18 +00:00
marc_modification_templates.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
modborrowers.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
overduerules.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
picture-upload.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
preview_letter.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
quotes-upload.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
quotes.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
scheduler.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
showdiffmarc.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
stage-marc-import.tt Bug 21333: (follow-up) Make link a button 2018-09-26 19:05:54 +00:00
stockrotation.tt Bug 11897: Translatability and wrong escaping fix 2018-10-09 15:46:08 +00:00
tools-home.tt Bug 11897: (QA follow-up) Move menu to 'Catalog' 2018-10-09 15:46:08 +00:00
upload-images.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
upload.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
viewlog.tt Bug 7996: (QA follow-up) Remove unnecessary permission check view logs template 2018-08-22 11:47:10 +00:00