Koha/koha-tmpl/intranet-tmpl/lib/koha/cateditor
Nick Clemens 3b0f86b531 Bug 27308: Skip blank lines when inserting new
The intent of the macro insert new function is to add a new field at the correct numerical place in the record. If you have a blank line while editing, however, the new line will be inserted at the blank line, rather than checking the rest of the record.

To test:
1 - Create a macro like
    new 690=‡aLOCAL SUBJECT
2 - Insert a blank line into your record somewhere before where the 690 should be inserted
3 - Run the macro
4 - Line is inserted before the blank line
5 - Apply patch
6 - Reload (ensure cache is cleared and JS files are reloaded)
7 - Remove the previously created field, but leave the blank
8 - Run the macro
9 - Field is created at correct position

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Bug 27308: (QA follow-up) Remove commented line

I don't think we need to keep the original line as a comment.. this
patch simply cleans it up.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-01-12 16:03:03 +01:00
..
macros Bug 24789: Remove ITS macro format 2020-03-16 11:02:35 +00:00
koha-backend.js Bug 16424: Update default values in advanced editor when changing frameworks. 2018-09-28 19:01:51 +00:00
macros.js Bug 24789: Remove ITS macro format 2020-03-16 11:02:35 +00:00
marc-editor.js Bug 27308: Skip blank lines when inserting new 2021-01-12 16:03:03 +01:00
marc-mode.js Bug 24452: Advanced editor - show multiple spaces visually 2020-01-23 10:24:53 +00:00
marc-record.js
preferences.js
resources.js
search.js Bug 17515: Order Z3950 server by rank and preserve ordering 2020-11-02 11:03:09 +01:00
text-marc.js Bug 23045: Return record along with errors 2019-07-01 14:52:38 +01:00
widget.js Bug 21049: Set 007/00 when selecting material type (Rancor) 2019-03-28 13:46:04 +00:00