Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Andreas Roussos 3e1e1448e9 Bug 21861: The MARC modification template actions editor does not always validate user input
The MARC modification template actions editor does not validate
user input when adding a conditional clause, making it possible
to save a modification action without filling in all necessary
fields.

This patch fixes that.

Test plan:
1) Create a MARC modification template and add a new action,
   e.g. "Copy All field(s) 200$a to field 600$a".
   Add a condition ("if" or "unless") but leave the relevant
   field and subfield textboxes empty.
   Add "matches" or "doesn't match" as a comparison operator.
   Check the "RegEx" checkbox, leave the regex textbox empty.
2) Click on "Add action" and notice how it accepts your input.
   Also notice the extra space in the Action column RegEx.
3) Edit your modification action and notice the missing "m/"
   before the conditional RegEx.

4) Apply the patch and hit CTRL-F5 to reload the relevant JS.

5) Edit the modification action you added previously (or add
   a new one). Try leaving the textboxes mentioned above empty
   and then submit your changes. You should get pop-up windows
   informing you about missing fields.
6) Now try typing a value in the conditional regex textbox and
   Update your action. In the Action column, there should be
   no spaces between the delimiters of the matching operator
   and the value you just entered.
7) Edit your action: notice how the "m/" before the regular
   expression and the "/" after it are now showing correctly.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-29 18:32:49 +00:00
..
acqui Bug 21758: Navigation in Z39.50 result pages not working in Acquisitions 2018-11-26 12:29:32 +00:00
admin Bug 21815: Rephrase HidePersonalPatronDetailOnCirculation 2018-11-16 13:02:45 +00:00
authorities Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
basket Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
batch Bug 21529: (bug 13618 follow-up) Display print notices with HTML tags 2018-11-21 11:09:32 +00:00
catalogue Bug 21805: Duplicate include file in search results template causes JS error 2018-11-15 12:47:34 +00:00
cataloguing Bug 21839: Fix capitalization of "Print Label" link 2018-11-16 13:00:44 +00:00
circ Bug 21526: (follow-up) Use the 'url' filter when needed 2018-11-12 16:35:44 -03:00
clubs Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
common Bug 18480: Get rid of unwanted / distracting link in patron search for fund owner 2018-10-15 14:19:08 +00:00
course_reserves Bug 21838: Wrong alignment of instructors in course reserves 2018-11-16 12:53:02 +00:00
errors Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
ill Bug 21516: (ALTERNATE) Request notes CSS bug makes them unreadable 2018-11-16 12:57:19 +00:00
installer Bug 19833: Kill all the "bibilos" - final couple 2018-09-19 13:54:43 +00:00
labels Bug 21526: (RM follow-up) Fix merge markers and a few extra filters 2018-10-26 19:43:20 +00:00
members Bug 21715: Ease translation of account and account offset type descriptions 2018-11-08 02:18:47 +00:00
offline_circ Bug 21526: (QA follow-up) Fix all the tabs 2018-10-26 17:09:58 +00:00
onboarding Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
patron_lists Bug 21186: Incorrect Bootstrap modal event name in multiple templates 2018-10-29 00:31:50 +00:00
patroncards Bug 21526: (RM follow-up) Fix merge markers and a few extra filters 2018-10-26 19:43:20 +00:00
plugins Bug 21570: Update two-column templates with Bootstrap grid: Various 2018-11-05 14:41:09 +00:00
reports Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
reserve Bug 20450: (follow-up) Add missing template filters 2018-10-27 14:20:58 +00:00
reviews Bug 21570: Update two-column templates with Bootstrap grid: Various 2018-11-05 14:41:09 +00:00
rotating_collections Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
serials Bug 21467: (follow-up) Display a summary line per parent_ordernumber 2018-11-13 19:31:13 +00:00
services Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
suggestion Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
tags Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
test Bug 14321: Final cleanup, removing obsolete files 2015-09-25 12:02:52 -03:00
tools Bug 21861: The MARC modification template actions editor does not always validate user input 2018-11-29 18:32:49 +00:00
virtualshelves Bug 21570: Update two-column templates with Bootstrap grid: Various 2018-11-05 14:41:09 +00:00
about.tt Bug 7143: Update about page for new dev Thatcher Leoonard 2018-11-15 12:47:37 +00:00
auth.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
intranet-main.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00