3.10.0 dynamic content structure menu quote

Author Message

Gwenal Le Bihan

Friday 04 January 2008 8:02:06 am

Hello everyone,

I'm having this problem installing the new dynamic menu in the admin, if I have an object whose title is containig more than one quote ex: "essai d'article d'état civil', the option-menu doesn't show and I have a javascript error

Erreur : missing ) after argument list
Fichier source : http://xxxxxxxxxxxxxxxxxx
Ligne : 1, Colonne : 146
Code source :
classID:'4',name:'Utilisateur'},{classID:'21',name:'Windows media'},{classID:'27',name:'Zone d\'Outils et de Navigation'}] }, 'essai d\'article d'état civil', 7799, -1 ); return false

as you can see, the second quote is not backslashed...

Any clue? Is this a known bug or is there something wrong with my upgrade?

Thx for your help

Gwenal

André R.

Friday 04 January 2008 10:23:10 am

It's probably a bug, and here is a similar one:
http://issues.ez.no/IssueView.php?Id=11744&

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal France

Friday 04 January 2008 7:54:39 pm

Hi,

This bug hasn't been fixed in eZ Publish 4.0

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Gwenal Le Bihan

Monday 07 January 2008 1:45:21 am

Hello again,

I think it comes from the upgrade (from v3.9.2) because I also have a "3.10.0 born" site and i don't have the problem with same classes and objects...

I've looked in the content_strcture_menu_dynamic.tpl and it looks like as if the javascript replace function was only working fine for the first quote found...

I've picked that one up (and add /'/g instead of /'/)

classes += "{classID:'"
                            + classList[j]
                            + "',name:'"
                            + this.classes[classList[j]].name.replace(/'/g,"\\'")
                            + "'}";

But it doesn't change anything...

G

Pascal France

Tuesday 08 January 2008 9:17:13 am

Hi Gwenal,

No. This bug is not due to upgrade process.
I'm faced with it with a from scratch 4.0.0 and 3.9.10 website or Plain installation (with article or frontpage object class for example - eg: L'été s'ra chaud).

This bug appears only in the Content menu, not in the Sub-items or object preview frame.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristof Coomans

Tuesday 15 January 2008 2:42:58 am

Issue described here will be fixed together with http://issues.ez.no/11744.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:24:46
Script start
Timing: Jan 18 2025 18:24:46
Module start 'layout'
Timing: Jan 18 2025 18:24:46
Module start 'content'
Timing: Jan 18 2025 18:24:46
Module end 'content'
Timing: Jan 18 2025 18:24:46
Script end

Main resources:

Total runtime0.7051 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0469152.6406
Module start 'layout' 0.00560.0029 740.687539.4766
Module start 'content' 0.00850.6951 780.1641646.1250
Module end 'content' 0.70360.0014 1,426.289116.1250
Script end 0.7051  1,442.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4438160.0002
Check MTime0.00130.1806160.0001
Mysql Total
Database connection0.00070.102410.0007
Mysqli_queries0.645191.4813700.0092
Looping result0.00070.1025680.0000
Template Total0.672195.320.3360
Template load0.00190.264820.0009
Template processing0.670295.047320.3351
Template load and register function0.00030.038310.0003
states
state_id_array0.00140.201210.0014
state_identifier_array0.00180.250020.0009
Override
Cache load0.00160.2250360.0000
Sytem overhead
Fetch class attribute can translate value0.00050.068040.0001
Fetch class attribute name0.00100.136580.0001
XML
Image XML parsing0.00110.156340.0003
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00100.1362230.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs