rainerc / cr-data-manager

Automatically exported from code.google.com/p/cr-data-manager
1 stars 0 forks source link

error when a field with content is touched by calc #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<<Notes.Calc:{Notes} + '\n' + 'Release Date: ' + {ReleasedTime}>>

throws exception if Notes already has content

Original issue reported on code.google.com by rainer.c...@googlemail.com on 8 Jun 2013 at 7:23

GoogleCodeExporter commented 9 years ago
exception is thrown if the old content of {Notes} contains a NewLine

Original comment by rainer.c...@googlemail.com on 8 Jun 2013 at 7:25

GoogleCodeExporter commented 9 years ago
fixed by replacing NewLine with an escaped \n before using eval:

fieldContent = fieldContent.replace('\n','\\n')

Original comment by rainer.c...@googlemail.com on 8 Jun 2013 at 7:34