We're updating the issue view to help you get more done. 

Bundle previews break user interface when single quotes are in current value

Description

When a value contains a single quote (apostrophe) the enter editor UI is broken due to Javascript errors. This is the code in the ca_object_labels_preferred.php bundle that is causing the error, due to a unescaped quotes:

bundlePreview: '<?php print addslashes(strip_tags(html_entity_decode(current($va_initial_values)['name']))); ?>',

I'd bet there are others but haven't looked.

Environment

None

Activity

Show:
Stefan Keidel
February 25, 2015, 9:46 AM

Oops, I'm on it

Stefan Keidel
February 25, 2015, 10:08 AM

Ok should be fixed. Sorry about that.

Everything is run through the same (new) helper now, so if something breaks we don't have to change a million bundle views again. Should have done that from the beginning

User known
February 25, 2015, 10:49 AM

Still broken when there are returns in the text. Description fields, for example, will often cause errors because they have returns.

Assignee

Stefan Keidel

Reporter

User known

Labels

None

Components

Fix versions

Affects versions

Priority

Blocker
Configure