Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Agustin Moyano 740331c39e Bug 27719: Apply _escape_str and _escape_price where needed
This bug replaces calls for .escapeHtml and format_price for there null
checking counterparts

To test:

1: have a fresh Koha Testing Docker
2: have a basket set to create item records on ordering
3: populate basket from a marc file, only setting price and fund for the items
4: close basket
5: click to Receive, create invoice
6: on parcel.pl, "Processing" alert never resolves
CHECK => The console shows:
parcel.pl?invoiceid=1:810 Uncaught TypeError: Cannot read property 'format_price' of null
    at render (parcel.pl?invoiceid=1:810)
    at datatables.min_20.1200012.js:57
    at Object.b.fnGetData (datatables.min_20.1200012.js:51)
    at B (datatables.min_20.1200012.js:56)
    at Ha (datatables.min_20.1200012.js:64)
    at P (datatables.min_20.1200012.js:68)
    at vb (datatables.min_20.1200012.js:79)
    at datatables.min_20.1200012.js:76
    at i (datatables.min_20.1200012.js:74)
    at Object.success (datatables.min_20.1200012.js:75)

And that error points toward:
                        "data": "replacement_price",
                        "render": function(data, type, row, meta) {
                            return (row.replacement_price).format_price();
                        },
                    },
7: apply patch
8: redo steps 5 and 6
SUCCESS => "Processing" alert doesn't hangs, and prices with null values
are empty.

Sponsored-by: Virginia Polytechnic Institute and State University

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-18 11:52:01 +01:00
..
acqui Bug 27719: Apply _escape_str and _escape_price where needed 2021-02-18 11:52:01 +01:00
admin Bug 24108: (QA follow-up) Add staff detail page to syspref description 2021-02-17 16:28:25 +01:00
authorities Bug 27471: Change auth merge success link text and don't redirect 2021-01-27 10:45:54 +01:00
basket Bug 23852: Merge biblio-title.inc and biblio-default-view.inc 2020-10-08 15:01:29 +02:00
batch
catalogue Bug 27605: Add floating toolbar to patron search page 2021-02-09 09:23:55 +01:00
cataloguing Bug 26943: Add notforloan statuses to catalog search 2021-02-08 17:09:32 +01:00
circ Bug 27706: (bug 24488 follow-up) Fix libraries column filter 2021-02-16 10:22:13 +01:00
clubs Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
common Bug 27561: Remove type attribute from script tags: Various templates 2021-02-01 16:36:38 +01:00
course_reserves Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
errors
ill Bug 25614: Move ILL request keyword filter to sidebar 2021-01-27 10:45:54 +01:00
installer Bug 24973: Load custom localization file 2020-08-24 12:10:53 +02:00
labels Bug 27404: update labels/label-edit-range.tt for ACC2 2021-02-08 16:12:42 +01:00
mana
members Bug 27605: (follow-up) Make the feature work with Bug 27403 2021-02-09 09:23:55 +01:00
offline_circ Bug 27561: Remove type attribute from script tags: Various templates 2021-02-01 16:36:38 +01:00
onboarding Bug 26449: fix web installer typo 2020-10-08 11:36:32 +02:00
patron_lists Bug 27605: Add floating toolbar to patron search page 2021-02-09 09:23:55 +01:00
patroncards Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
plugins Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
pos Bug 26274: Update register.tt to use the API 2021-02-12 12:33:41 +01:00
reports Bug 27380: Add 'list' option to Koha report parameters 2021-02-12 12:22:08 +01:00
reserve Bug 27407: Update reserve/request.tt for ACC2 2021-01-22 14:59:27 +01:00
reviews Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
rotating_collections Bug 23852: Merge biblio-title.inc and biblio-default-view.inc 2020-10-08 15:01:29 +02:00
serials Bug 27398: Made values in number patterns subscription length translatable 2021-02-08 14:56:00 +01:00
services
suggestion Bug 27608: Corrects 'accepted by' inconsistency in suggestion.tt 2021-02-08 14:56:00 +01:00
tags Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
test
tools Bug 27598: Add UPLOAD as a built-in system authorized value category 2021-02-15 11:59:31 +01:00
virtualshelves Bug 27605: Add floating toolbar to patron search page 2021-02-09 09:23:55 +01:00
about.tt Bug 27561: Remove type attribute from script tags: Various templates 2021-02-01 16:36:38 +01:00
auth.tt Bug 18506: (QA follow-up) Indentation and more conditionals 2021-02-09 09:48:35 +01:00
intranet-main.tt Bug 27561: Remove type attribute from script tags: Various templates 2021-02-01 16:36:38 +01:00