[Koha-bugs] [Bug 33335] New: MARC overlay rules broken because of "categorycode.categorycode " which contains "-"
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 24 22:02:08 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33335
Bug ID: 33335
Summary: MARC overlay rules broken because of
"categorycode.categorycode " which contains "-"
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: System Administration
Assignee: koha-bugs at lists.koha-community.org
Reporter: marius.mandrescu at inlibro.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com
Created attachment 148696
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148696&action=edit
the page half loaded
The "MARC overlay rules" page becomes inaccessible if in the DB there is in the
"categories" table a "categorycode" which contains a "-". This happens because
of the javascript function on the page "marc-overlay-rules.tt" line 469. The
problem that is caused is the "SyntaxError: missing : after property id".
Plan test:
1- Go to Administration->Patron categories
2- Make sure you don't already have a patron categories that contains a "-"
3- Go to Administration->Record matching rules
4- Everything should be displayed as it does
5- Return to Patron categories
6- Add a new category
In the category code put a "-" and save
7- Return to Record matching rules
The page should be half loaded as in the photo
The solution should not prevent the user from putting "-" in the category code
but the Record matching rules accept the category code with "-".
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list