Bug 22870

Summary: When adding a '#' into Rancor with a macro, the special character gets removed
Product: Koha Reporter: Kelly McElligott <kelly>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: jonathan.druart, m.de.rooy
Version: 18.05   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Kelly McElligott 2019-05-08 21:15:56 UTC
A library's code to insert into their records has the value of # in it.  When this is added to a macro and that macro is run in the Advanced Editor, the # gets removed and does not get input into the record.

1. Create a macro to insert 

new 040=‡cBE#

2. Run this macro

3. The record will have the 040$c BE in the record, but Koha has dropped the #
Comment 1 Jonathan Druart 2019-05-10 18:10:48 UTC
From cateditor/macros/rancor.js:
238                 contents = contents.replace( /#.*$/, '' );

So it's expected, what's following # is considered as a comment