Fixed issue 16053.[OBCLKER]Added ?js_string to escape quotes.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Fri, 04 Mar 2011 15:19:34 +0100
changeset 11025 2552bff1ce1a
parent 11024 cbfce7570f7e
child 11026 78e2cd1036ba
Fixed issue 16053.[OBCLKER]Added ?js_string to escape quotes.
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/templates/application-dynamic-js.ftl
--- a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/templates/application-dynamic-js.ftl	Fri Mar 04 13:30:26 2011 +0100
+++ b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/templates/application-dynamic-js.ftl	Fri Mar 04 15:19:34 2011 +0100
@@ -26,11 +26,11 @@
         name : '${(data.user.name!'')?js_string}',
         email : '${(data.user.email!'')?js_string}',
         roleId: '${data.role.id}',
-        roleName: '${data.role.name}',
+        roleName: '${data.role.name?js_string}',
         clientId: '${data.client.id}',
-        clientName: '${data.client.name}',
+        clientName: '${data.client.name?js_string}',
         organizationId: '${data.organization.id}',
-        organizationName: '${data.organization.name}'
+        organizationName: '${data.organization.name?js_string}'
 };
 
 OB.AccessibleEntities = {