[Koha-bugs] [Bug 27308] Advanced editor should skip blank lines when inserting new fields
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 31 18:55:19 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27308
PTFS Europe Sandboxes <sandboxes at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #114698|0 |1
is obsolete| |
--- Comment #2 from PTFS Europe Sandboxes <sandboxes at ptfs-europe.com> ---
Created attachment 114762
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114762&action=edit
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 at bedfordtx.gov>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list