]> git.koha-community.org Git - koha.git/commit
Bug 23045: TextMarc errors on blank lines
authorNick Clemens <nick@bywatersolutions.com>
Tue, 4 Jun 2019 14:25:53 +0000 (14:25 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 1 Jul 2019 13:52:37 +0000 (14:52 +0100)
commit545f38d13c210e4cb173e67d2578d825a9ffeb47
tree4ff0399c42ef8c4b65af928c4a315da6a1cbc93f
parentf317d384f657bb8341a1a641343e18ed9598240d
Bug 23045: TextMarc errors on blank lines

Since bug 16251 we use TextMarc to get some record fields, however, it throws an error when
processing blank lines.

We should just pass on these rather then erroring

To test:
1 - Define a new macro that delete more fields than it adds
  delete 245
2 - Run it
3 - Note an error in JS console, and helpers will not load
4 - Apply patch
5 - Reload, try again
6 - No error

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/lib/koha/cateditor/text-marc.js
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc