Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
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
..
csv Bug 27486: Rename system preference delimiter to CSVDelimiter 2021-01-29 09:03:45 +01:00
tables
acqui-home.tt Bug 27653: Use div instead of caption for controls 2021-02-15 11:48:55 +01:00
addorder.tt
addorderiso2709.tt Bug 27605: Add floating toolbar to patron search page 2021-02-09 09:23:55 +01:00
ajax.tt
basket.tt Bug 27403: (follow-up) Make basket toolbar and table header work together 2021-02-09 09:23:53 +01:00
basketgroup.tt
basketheader.tt Bug 26712: Set focus for cursor to basket name input box on basketheader.pl 2020-11-03 10:57:35 +01:00
booksellers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
cancelorder.tt
duplicate_orders.tt Bug 26767: Remove the use of jquery.checkboxes plugin from duplicate orders template 2020-11-03 10:57:35 +01:00
edi_ean.tt
edifactmsgs.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
edimsg.tt
histsearch.tt Bug 21851: Improve style of sidebar forms 2021-01-28 17:32:53 +01:00
invoice-files.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
invoice.tt
invoices.tt
lateorders.tt Bug 15329: Add new column for budget to the late orders table 2020-11-04 12:59:34 +01:00
modordernotes.tt
neworderempty.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
neworderempty_duplicate.tt
newordersubscription.tt
newordersuggestion.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
ordered.tt
orderreceive.tt Bug 27671: Use Koha.Preference for UniqueItemFields 2021-02-12 12:14:50 +01:00
parcel.tt Bug 27719: Apply _escape_str and _escape_price where needed 2021-02-18 11:52:01 +01:00
parcels.tt
showorder.tt
spent.tt
supplier.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
transferorder.tt
uncertainprice.tt Bug 26217: Move translatable strings out of templates into acq.js 2020-09-29 14:28:18 +02:00
z3950_search.tt Bug 23302: Less clicks on Z3950 search results 2021-01-27 14:36:26 +01:00