Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 21/06/2013 16:18:48

comrade
Guest
Registered: 18/06/2013
Posts: 9

javascript error in view.html in Rights Profiles Administration

I downloaded and am running 3.5.

I'm getting a javascript error around line 2239.

var input = new org.ametys.rights.CheckRightEntry ({
listeners: {'check': needSave},
width: 175,
text : "Create a "About" content",
name: "Blog_Right_Profile_Create",
id: "Blog_Right_Profile_Create",
description: "Create a content of type "About".",
category: "plugin_cms_PLUGINS_CMS_RIGHTS_CONTENT_CREATE_CATEGORY",
hideLabel : true,
disabled: true
});

The quotes around About probably need to be escaped.

Last edited by comrade (21/06/2013 16:22:49)

Offline

#2 21/06/2013 16:33:05

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,091

Re: javascript error in view.html in Rights Profiles Administration

Yes your right, it's a bug.
I have opened it for you here https://issues.ametys.org/browse/BLOG-64 and I fix it in a row

You may download the blog jar by tomorrow to fix this in your installation http://releases.ametys.org/nightly/org. … log/1.3.x/ (replace the existings jars in WEB-INF/lib with thoses)


Raphael Franchet
Expert Ametys

Offline

#3 21/06/2013 16:37:08

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,091

Re: javascript error in view.html in Rights Profiles Administration

you may also override the embeded i18n catalogue by adding a file in WEB-INF/i18n/plugins/blog/messages.xml containing the values to override :

<?xml version="1.0" encoding="UTF-8"?>
<catalogue xml:lang="en">
    <message key="PLUGINS_BLOG_RIGHT_CREATE_PROFILE_LABEL">Create a \"About\" content</message>
    <message key="PLUGINS_BLOG_RIGHT_CREATE_PROFILE_DESCRIPTION">Create a content of type \"About\".</message>
</catalogue>

Raphael Franchet
Expert Ametys

Offline

#4 21/06/2013 16:47:17

comrade
Guest
Registered: 18/06/2013
Posts: 9

Re: javascript error in view.html in Rights Profiles Administration

Thanks. I overrode the values by creating the messages.xml file and it's working now.

Offline

Board footer

Powered by FluxBB